• 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: File's owner and delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >File's owner and delegate (From: Joakim Danielson <email@hidden>)
 >Re: File's owner and delegate (From: Allan Odgaard <email@hidden>)
 >Re: File's owner and delegate (From: Joakim Danielson <email@hidden>)

  • Prev by Date: Re: CamelBones question
  • Next by Date: Re: setAccessoryView
  • Previous by thread: Re: File's owner and delegate
  • Next by thread: Re: File's owner and delegate
  • Index(es):
    • Date
    • Thread