• 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: unbind: not 'taking'?[solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unbind: not 'taking'?[solved]


  • Subject: Re: unbind: not 'taking'?[solved]
  • From: Michael Hanna <email@hidden>
  • Date: Thu, 21 Jul 2005 06:43:50 -0400

Turns-out that I was not clicking the right event to trigger the unbind: D'OH! :)

Michael

On 21-Jul-05, at 5:39 AM, Michael Hanna wrote:

I'm using the same window to Add and Edit items in an NSTableView. The problem is that after programmatically binding an NSPopUpMenu, oLucidityPassagePopUp, it does not seem to respond to unbind.

Editing:

- (void) doPassagesDoubleClick: (id) sender {

    [......]

    [oLucidityPassagePopUp bind: @"selectedObject"
           toObject: oPassagesController
        withKeyPath: @"selection.properties.lucidity"
            options: nil];

    [......]

}

this is clicking the Update button in the passage entry window:

- (IBAction) doEditPassageAction: (id) sender
{

    [various setting messages here]

    [oLucidityPassagePopUp unbind: @"selectedObject"];    /// unbind?
    [oPassageWindow close];
    [[oEntriesTable window] makeKeyAndOrderFront:nil];

}


but later, if I Add a new passage using the same window, the oLucidityPassagePopUp is grayed-out and blank as if it's trying to bind to selectedObject(if a table row happens to be selected, the oLucidityPassagePopUp is populated with the selected item).


If I Add before Editing, then the problem does not occur.

Is unbind not 'taking' for some reason?

Michael

_______________________________________________
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


_______________________________________________ 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: 
 >unbind: not 'taking'? (From: Michael Hanna <email@hidden>)

  • Prev by Date: Objective-M2 & GM2 -- Invitation to join the discussion
  • Next by Date: EO_Archive files in nibs
  • Previous by thread: unbind: not 'taking'?
  • Next by thread: Objective-M2 & GM2 -- Invitation to join the discussion
  • Index(es):
    • Date
    • Thread