AppKit-level categories.
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.
| Attachment | Size |
|---|---|
| DSBezierPathCategories.h | 2.6 KB |
| DSBezierPathCategories.m | 9.19 KB |
| DSBezierPathCategories.zip | 3.91 KB |
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.
| Attachment | Size |
|---|---|
| DSImageCategories.h | 1.38 KB |
| DSImageCategories.m | 2.32 KB |
| DSImageCategories.zip | 2.4 KB |
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.
| Attachment | Size |
|---|---|
| DSMenuCategories.h | 1.97 KB |
| DSMenuCategories.m | 4.39 KB |
| DSMenuCategories.zip | 2.7 KB |
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.
| Attachment | Size |
|---|---|
| DSOutlineViewCategories.h | 1.41 KB |
| DSOutlineViewCategories.m | 6 KB |
| DSOutlineViewCategories.zip | 3.48 KB |
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.
| Attachment | Size |
|---|---|
| DSPopUpButtonCategories.h | 1.64 KB |
| DSPopUpButtonCategories.m | 5.2 KB |
| DSPopUpButtonCategories.zip | 2.92 KB |
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.
| Attachment | Size |
|---|---|
| DSTableViewCategories.h | 4.09 KB |
| DSTableViewCategories.m | 31.85 KB |
| DSTableViewCategories.zip | 9.25 KB |
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.
| Attachment | Size |
|---|---|
| DSTextFieldCategories.h | 1.42 KB |
| DSTextFieldCategories.m | 4.55 KB |
| DSTextFieldCategories.zip | 2.99 KB |
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.
| Attachment | Size |
|---|---|
| DSTextViewCategories.h | 2.8 KB |
| DSTextViewCategories.m | 8.16 KB |
| DSTextViewCategories.zip | 3.15 KB |
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.
| Attachment | Size |
|---|---|
| DSToolbarCategories.h | 1.43 KB |
| DSToolbarCategories.m | 2.21 KB |
| DSToolbarCategories.zip | 2.38 KB |
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.
| Attachment | Size |
|---|---|
| DSViewCategories.h | 1.71 KB |
| DSViewCategories.m | 8.13 KB |
| DSViewCategories.zip | 3.32 KB |
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.
| Attachment | Size |
|---|---|
| DSWindowCategories.h | 1.55 KB |
| DSWindowCategories.m | 5.39 KB |
| DSWindowCategories.zip | 3.56 KB |