[ANN] Updated source code: Colored Checkboxes, Source List
[ANN] Updated source code: Colored Checkboxes, Source List
- Subject: [ANN] Updated source code: Colored Checkboxes, Source List
- From: Matt Gemmell <email@hidden>
- Date: Mon, 29 Dec 2003 21:30:22 +0000
Hi all,
Just another infrequent update to my page of Cocoa source code:
<
http://iratescotsman.com/products/source/>
1. "Source List" control.
A "Source List" is the special kind of NSTableView whose selected rows
are highlighted with a blue gradient background rather than the usual
system highlight color. iCal's "Calendars" list, iTunes' "Source" list
and the Panther Finder's sidebar are all examples of Source Lists.
Source Lists aren't yet available for developers to use, so I've
written some code (actually an NSTextFieldCell and NSImageCell
subclass, and a small NSTableView subclass) to provide them.
Get the code in the "iTableView" project download:
<
http://iratescotsman.com/ftp/source/itableview.tgz>
See an example screenshot here:
<
http://iratescotsman.com/ftp/source/itableview_screenshot.jpg>
2. Colored Checkboxes
iCal's colored checkboxes are often requested, but aren't available via
standard APIs. The iTableView source (mentioned above) also includes a
method (and appropriate PNG images) which takes an NSColor and a BOOL
(for whether or not the checkbox should be checked), and returns an
NSImage with the appropriate graphic, showing colored checkboxes
identical to those found in iCal. Any color can be used.
(Same download and screenshot links as above.)
3. Pencil graphic for application icons
Not really source code, but handy nonetheless. A large TIFF of a
pencil, drawn in a style and perspective suitable for use in a Mac OS X
application icon. Ideal for editing apps of any kind, particularly word
processors or text editors. Thanks to Oliver Cameron for donating this
icon.
Download:
<
http://iratescotsman.com/ftp/icons/pencil.gz>
See a preview:
<
http://iratescotsman.com/ftp/icons/pencil_preview.png>
Get more icons to use in your apps:
<
http://iratescotsman.com/products/icons/>
That's all for now. Any feedback can be sent either directly via email,
via either the comments system on my blog (URL in my sig), or using the
contact form linked from my blog. If you improve the source in any way,
I'd appreciate hearing about your changes and getting a copy of the new
code; I'll also happily host it for download, or link to your site if
you'd like to host it yourself.
If you'd like to keep up to date on future additions to my Cocoa source
code, feel free to subscribe to the (RSS1 or 2) feed for the
"Development -> Cocoa" category on my blog.
Cheers,
-Matt
--
Matt Gemmell
Irate Scotsman
http://iratescotsman.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.