• 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: Secondary Window Content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Secondary Window Content


  • Subject: Re: Secondary Window Content
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 1 Feb 2005 12:03:56 -0800


On Feb 1, 2005, at 10:46 AM, Mike Rossetti wrote:

7. The EditWindowController gets initialized with the EditWindow nib name and with a pointer to the item to be edited.
The EditWindow is supposed to show the information about the selected item.


I'm stumbling over figuring out how to hook up the EditWindow so that it knows about the item to which the controller points.

8. There is an ItemName field in the EditWindow. It's bound to an NSObjectController which I call (EditController).

I don't know to where the content of the EditController so be connected in order to get the pointer to the item being edited.

Add an instance variable to EditWindowController for the item to be edited.
Bind the 'content' of the object controller in the EditWindow nib to that variable.
After you've created your new EditWindowController, set its item, for example:


    newWindow = [[EditWindowController alloc] initWithWindowNibName:
                                                 @"EditWindow"];
   [newWindow setItem:[self selection]];

mmalc

_______________________________________________
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


References: 
 >Secondary Window Content (From: Mike Rossetti <email@hidden>)

  • Prev by Date: How to re-check "Conditionally sets editable" on a tablecolumn?
  • Next by Date: Re: catching mouseDown in NSTableView
  • Previous by thread: Secondary Window Content
  • Next by thread: catching mouseDown in NSTableView
  • Index(es):
    • Date
    • Thread