AppKit categories

AppKit-level categories.

DSBezierPathCategories

Cocoa categories to extend NSBezierPath, to draw rounded rects, triangles, gradients, etc.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSBezierPathCategories.h2.6 KB
DSBezierPathCategories.m9.19 KB
DSBezierPathCategories.zip3.91 KB

DSImageCategories

Cocoa categories to extend NSImage, including adding a badge to an image.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSImageCategories.h1.38 KB
DSImageCategories.m2.32 KB
DSImageCategories.zip2.4 KB

DSMenuCategories

Cocoa categories to extend NSMenu, including convenience methods for menu items with icons and represented objects.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSMenuCategories.h1.97 KB
DSMenuCategories.m4.39 KB
DSMenuCategories.zip2.7 KB

DSOutlineViewCategories

Cocoa categories to extend NSOutlineView, including managing selected items and more.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSOutlineViewCategories.h1.41 KB
DSOutlineViewCategories.m6 KB
DSOutlineViewCategories.zip3.48 KB

DSPopUpButtonCategories

Cocoa categories to extend NSPopUpButton, including adding items with tags, represented objects, and file paths.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSPopUpButtonCategories.h1.64 KB
DSPopUpButtonCategories.m5.2 KB
DSPopUpButtonCategories.zip2.92 KB

DSTableViewCategories

Cocoa categories to extend NSTableView, including pasteboard support, all/selected rows enumeration, table column utilities, sort descriptor utilities, custom header and cell helpers, and more.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSTableViewCategories.h4.09 KB
DSTableViewCategories.m31.85 KB
DSTableViewCategories.zip9.25 KB

DSTextFieldCategories

Cocoa categories to extend NSTextField, including prompt, value, and slider synchronization utilities.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSTextFieldCategories.h1.42 KB
DSTextFieldCategories.m4.55 KB
DSTextFieldCategories.zip2.99 KB

DSTextViewCategories

Cocoa categories to extend NSTextView, including attributes and selection utilities, convenience methods to append, get and set strings, attributed strings, and RTF data.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSTextViewCategories.h2.8 KB
DSTextViewCategories.m8.16 KB
DSTextViewCategories.zip3.15 KB

DSToolbarCategories

Cocoa categories to extend NSToolbar, including getting and setting various attributes.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSToolbarCategories.h1.43 KB
DSToolbarCategories.m2.21 KB
DSToolbarCategories.zip2.38 KB

DSViewCategories

Cocoa categories to extend NSView, including manipulating autoresizing masks, plus view scaling.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSViewCategories.h1.71 KB
DSViewCategories.m8.13 KB
DSViewCategories.zip3.32 KB

DSWindowCategories

Cocoa categories to extend NSWindow, including fading in and out, and resizing so a subview has a specified size.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSWindowCategories.h1.55 KB
DSWindowCategories.m5.39 KB
DSWindowCategories.zip3.56 KB