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

unbind: not 'taking'?


  • Subject: unbind: not 'taking'?
  • From: Michael Hanna <email@hidden>
  • Date: Thu, 21 Jul 2005 05:39:02 -0400

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


  • Follow-Ups:
    • Re: unbind: not 'taking'?[solved]
      • From: Michael Hanna <email@hidden>
  • Prev by Date: build a complex interface in Interface Builder
  • Next by Date: Objective-M2 & GM2 -- Invitation to join the discussion
  • Previous by thread: build a complex interface in Interface Builder
  • Next by thread: Re: unbind: not 'taking'?[solved]
  • Index(es):
    • Date
    • Thread