Re: Binding ArrayController's "editable" property to object attribute
Re: Binding ArrayController's "editable" property to object attribute
- Subject: Re: Binding ArrayController's "editable" property to object attribute
- From: Scott Anguish <email@hidden>
- Date: Sat, 28 May 2005 20:56:54 -0400
Hi MattOn May 28, 2005, at 7:34 PM, Matthew M. Swann wrote: Hi all,
I'm creating an application which has a user interface much like iTunes or iPhoto -- it has a tableview of albums and a tableview of items in the currently selected album. There is always one Library album and any number of user-created, editable albums.
The album view is bound to an ArrayController which gets its information from a Core Data store. Each album is represented in Core Data by an Album object which contains (among other things) an attribute titled isLibraryAlbum. If this attribute is set to true, I'd like to disable editing of the album name in the tableview.
It would appear that the most straightforward way for me to accomplish this would be to bind the "editable" binding in my albums' ArrayController to the Album object's isLibraryAlbum. (I'd need to replace this attribute with its opposite, "isUserAlbum", but that's okay.) Looking at the Bindings inspector in IB, however, it appears that I can only bind "editable" to a key on the app delegate, not to a property on the ArrayController's items. Am I missing something obvious here?
editable on an array controller means whether you can add/remove items.
I believe you might actually want to bind the table view column that connects to the library album's editable binding to isLibraryAlbum.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden