• 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: Very simple Cocoa question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very simple Cocoa question


  • Subject: Re: Very simple Cocoa question
  • From: Doug <email@hidden>
  • Date: Tue, 03 Jul 2001 11:09:04 -0700

> On Tuesday, July 3, 2001, at 10:33 AM, Doug wrote:
>
>> Ah, ok...Thanks...that reference I snipped is handy too! I just tried
>> to do
>> this but now Interface Builder is saying that the window is undefined.
>> How
>> do I refer to a window I created in IB within my program? I need to
>> send a
>> message to my window, but I created it in Interface Builder so I don't
>> know
>> how to get an NSWindow pointer to send it to within my code.
>
> Add an instance variable (an "outlet", in IB parlance) to whatever class
> contains the code that you want to talk to the window. Make an instance
> of said class. Connect the outlet to the window.

Thanks Brendan, John and Stephane - that did the trick!

Doug


References: 
 >Re: Very simple Cocoa question (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Very simple Cocoa question
  • Next by Date: [ANN] FDWeakReferencingObject and FDObjectiveMethod
  • Previous by thread: Re: Very simple Cocoa question
  • Next by thread: Re: Very simple Cocoa question
  • Index(es):
    • Date
    • Thread