• 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: Application start-up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application start-up


  • Subject: Re: Application start-up
  • From: Bas Scheffers <email@hidden>
  • Date: Mon, 29 Aug 2005 22:23:04 +0100

Hi Alex,

Simply implementing awakeFromNib in my controler does what I need, thanks!

I will make a note about the other ways and investigate them too, they do seem more appropriate for a complex app.

Thanks for the quick response.

Cheers,
Bas.

On 29 Aug 2005, at 22:02, Alexander von Below wrote:

Hello bas,

if you are loading objects from NIBs, then you can do things in the "awakeFromNib" method. You can also register to receive an NSApplicationHasFInishedLaunching notification, and do things then, or set an Object as the NSApp's delegate and react on the applicationDidFinishLaunching delegate method.

HTH

Alex

Am 29.08.2005 um 22:59 schrieb Bas Scheffers:


Hi,

I am new to the list, quite proficient C, Java, C# and various other languages, but very little GUI experience (been a server guy all this time) and just getting started with Cocoa dev in Objective-C. (Recen Mac switcher, yay!)

I can't find in the documentation how to do things at application start up. In my "Hello World", I have an NSTableView that I need to put some data in. The problem is that in the init of my controler, the NSTableView Outlet is stil nil, so while I can create my datasource, I can't bind it yet to the table.

What is the correct place to do this kind of thing?

Thanks for any pointers,
Bas.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Application start-up (From: Bas Scheffers <email@hidden>)
 >Re: Application start-up (From: Alexander von Below <email@hidden>)

  • Prev by Date: Re: Application start-up
  • Next by Date: Re: Problems while using NSBezierPath
  • Previous by thread: Re: Application start-up
  • Next by thread: NSTimeInterval
  • Index(es):
    • Date
    • Thread