Re: unbind: not 'taking'?[solved]
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