• 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: Calling NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling NIB


  • Subject: Re: Calling NIB
  • From: Brett Powley <email@hidden>
  • Date: Tue, 24 Jun 2008 09:03:55 +1000

You need a controller object (typically a NSWindowController subclass) with IBOutlets for each of the things in your window you want to control from code. Then in Interface Builder you set the class of your NIB File's Owner to your subclass of NSWindowController, and connect each of the things you want to access to the correct IBOutlet in your NSWindowController.

(Doing the Currency Converter tutorial -- the one without bindings -- might be a good start for you.)




On 24/06/2008, at 6:43 AM, J. Todd Slack wrote:

Hello All,

I have a Windows in a NIB that contains a tab control.

From AS, how can I call the window in the NIB and select the tab that I want?

I know that:

load bib will load,, but I dont see how to access windows inside the nib and further how to access objects inside the windows inside the NIB.

Any thoughts?

Thanks!

-Jason


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Calling NIB
      • From: Luther Fuller <email@hidden>
References: 
 >Calling NIB (From: "J. Todd Slack" <email@hidden>)

  • Prev by Date: Re: Is Image Events working under Leopard?
  • Next by Date: Re: Calling NIB
  • Previous by thread: Calling NIB
  • Next by thread: Re: Calling NIB
  • Index(es):
    • Date
    • Thread