• 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: Real simple newbie question(s)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Real simple newbie question(s)


  • Subject: Re: Real simple newbie question(s)
  • From: Andreas Mayer <email@hidden>
  • Date: Sat, 24 Jul 2004 02:32:55 +0200

Am 24.07.2004 um 01:40 Uhr schrieb Chris Griffin:

My first question is how do I get to that object to set the text?

You either use connections (all system versions) or bindings (10.3 and up).

I don't think I fully understand your setup so it's difficult to be more specific. Here is what I usually do:

- create some IBOutlet for the UI element in MainController.h
- drag the MainController.h file from Xcode to the nib's window in IB
- instantiate the controller in IB
- control-drag from the controller icon to the UI element
- connect the corresponding outlet

The outlet will now contain a reference to the UI element at runtime.

You might use bindings instead but I recommend you try outlets first. For more information on bindings go to the ADC site and search for "cocoa bindings".


Andreas
_______________________________________________
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: 
 >Real simple newbie question(s) (From: Chris Griffin <email@hidden>)

  • Prev by Date: Re: NSOutlineView cells being truncated
  • Next by Date: SOLVED Re: Windows and Default Notification Center
  • Previous by thread: Re: Real simple newbie question(s)
  • Next by thread: SOLVED Re: Windows and Default Notification Center
  • Index(es):
    • Date
    • Thread