• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Editing a list of NSMutableStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Editing a list of NSMutableStrings


  • Subject: Editing a list of NSMutableStrings
  • From: Joanna Carter <email@hidden>
  • Date: Wed, 02 Mar 2011 10:32:37 +0000

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Editing a list of NSMutableStrings
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: InterfaceBuilder - send action to self?
  • Next by Date: Re: animating addSubview with iOS4
  • Previous by thread: Re: InterfaceBuilder - send action to self?
  • Next by thread: Re: Editing a list of NSMutableStrings
  • Index(es):
    • Date
    • Thread