Re: File's owner and delegate
Re: File's owner and delegate
- Subject: Re: File's owner and delegate
- From: Fritz Anderson <email@hidden>
- Date: Wed, 12 May 2004 12:09:08 -0500
You will end up with two instances of JDTransactionControll, one you
allocate in the code below, and one in the NIB.
-- F
On 12 May 2004, at 10:15 AM, Joakim Danielson wrote:
One follow up question: Now I have one
instance of my control class in the nib file and one in the method
call, or will one of them be replaced by the other?
- (IBAction)showAdminTransactions:(id)sender {
if (_wcTransactions == nil) {
JDTransactionControll *ctrl = [[[JDTransactionControll alloc] init]
autorelease];
_wcTransactions = [[NSWindowController alloc]
initWithWindowNibName:@"Transaction" owner:ctrl];
}
[_wcTransactions showWindow:self];
}
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.