Re: Advanced?? Bindings Questions
Re: Advanced?? Bindings Questions
- Subject: Re: Advanced?? Bindings Questions
- From: Scott Stevenson <email@hidden>
- Date: Mon, 27 Sep 2004 14:08:21 -0700
On Sep 27, 2004, at 1:05 PM, Joseph Jones wrote:
In my MainMenu.nib I have declared two panels that I wish to be global
and
to track the currently selected item and to provide a means of
modifying the
category list for a document. The category panel is attached to an
NSArrayController that is attached to the
NSApplication.mainWindow.document.categories.
Try binding to
NSApplication.mainWindow.windowController.document.<whatever> More on
that here:
http://www.cocoabuilder.com/archive/message/2004/8/1/113436
1) The Category editor works on a display basis only. I have added Add
and
Remove buttons which appear to work. Remove removes the currently
selected
item. Add adds a new, blank, string to the list as expected. However,
when I
edit the string to change it to something I want, the edit appears to
be
ignored and I have no idea why.
I think I remember running into this before. Basically, an
NSArrayController of raw NSStrings and tables don't seem to mix well.
Your categories table column is just bound to the array controller
itself, without a keypath. I haven't seen a configuration like this
work yet.
My suggestion would be to create a Categories class, or at least an
array of mutable dicitonaries with a key like "name". This plays more
directly to NSArrayController's strengths.
2) How do I get the Item Info panel hooked up to the active documents
Items
NSArrayController so that I can get it's currently set selection?
I believe you can refer to the note on the inspector above.
- Scott
--
Tree House Ideas
http://treehouseideas.com/
_______________________________________________
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