Binding ArrayController's "editable" property to object attribute
Binding ArrayController's "editable" property to object attribute
- Subject: Binding ArrayController's "editable" property to object attribute
- From: "Matthew M. Swann" <email@hidden>
- Date: Sat, 28 May 2005 16:34:18 -0700
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?
Thanks in advance!
-- Matt
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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