• 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: Advanced?? Bindings Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Advanced?? Bindings Questions
      • From: Don Carlile <email@hidden>
References: 
 >Advanced?? Bindings Questions (From: Joseph Jones <email@hidden>)

  • Prev by Date: open the AddressBook and have a group selected
  • Next by Date: Re: hash problem with NSString
  • Previous by thread: Advanced?? Bindings Questions
  • Next by thread: Re: Advanced?? Bindings Questions
  • Index(es):
    • Date
    • Thread