On Mar 25, 2009, at 2:44 PM, Jon C. Munson II wrote:

Do you mean here that you will "pop up" a window that contains an
NSTableView that will be used to select rows of Entity B? Correct
language is critical. I think most Cocoa developers would assume that
"popup" means NSpopupButton.


[Jon C. Munson II] Yes, an NSPopupButton is what I meant to imply here.

How would you do that? A popup button may only represent a single value. If you need to represent multiple values, you will need something like mmalc's the checkboxes example or a table view.

You should be able to use bindings for everything you describe except
for setting relationships between existing objects. That will have to
be done in code, AFAIK, but isn't difficult.

[Jon C. Munson II] OK. Benjamin Stiglitz responded suggesting I take a look at the ToManyCheckbox example on mmalc's page, so I'll do that and see if that clarifies things. Also, I noticed in the iClass example that code is used to support the relationship and so on. Is that the recommended
"template" implementation to support this type of relation?

You might be able to use an array controller whose content is the to- many relationship, calling addObject: with the managed object to add to the relationship, but otherwise the controller wouldn't interact with the UI. At that rate, it is probably better to set the relationship in code.

Generally, inserting new objects into a to-many relationship using an array controller is a common method.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to