Hi folks

This all started with a friend who wanted to emulate the Delphi concept of 
being able to "simply" add a "list box" to a form and add strings to it in the 
designer.

So, because I understand and teach separation of UI from data and, because 
Xcode beautifully supports MVC, I decided to put together a quick tutorial on 
how to achieve this.

I started by using the NSTableView, together with its delegate methods to 
supply the list of strings, but what my friend was really after was a way of 
using NSArrayController to supply the list of strings. This would also allow me 
to use the same NSArrayController to supply the list to an NSComboBox.

In working through this, I found that I needed to supply a read/write property 
in a category to NSMutableString.

I am writing a small article on this 
http://carterconsulting.myzen.co.uk/Articles/CreatingAnMruListInXcode.pdf and 
would value feedback on whether 1. I am on the right track, 2. there is already 
a better tutorial on this.

Many thanks

Joanna

--
Joanna Carter
Carter Consulting

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to