• 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
Re: NSArrayController and Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController and Bindings


  • Subject: Re: NSArrayController and Bindings
  • From: mmalc Crawford <email@hidden>
  • Date: Sun, 10 Jun 2007 05:27:52 -0700


On Jun 10, 2007, at 4:06 AM, Matthew Delves wrote:
What I'm trying to do is I have in a class an instance of NSArray which holds the data. I'm wanting to use an NSArrayController to use bindings in order to get the data from the NSArray.
Within the class that holds the NSArray I have the following two functions:
- (NSArray *)array;
- (void)getArray(NSArray *);


It's not clear if the second method (they're methods, not functions) is simply misspelled, but it doesn't follow the standard naming conventions for key-value programming (see <http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/index.html >). If you have implemented it as -getArray: (note the ":"), then from KVC's perspective this is semantically the same as -array.


When I use Interface Builder to bind to the array it will populate the first lot of data though then seems to lock up the application. Is there a way by which I can get around this? Am I using the correct approach?

There are numerous examples of binding to an array; in what ways does your implementation differ from those?
Are there any error messages?


mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >NSArrayController and Bindings (From: Matthew Delves <email@hidden>)

  • Prev by Date: [Moderator] Re: Making a control look "disabled"
  • Next by Date: writeToFile:atomically ... again
  • Previous by thread: NSArrayController and Bindings
  • Next by thread: writeToFile:atomically ... again
  • Index(es):
    • Date
    • Thread