unbind: not 'taking'?
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