New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

How to initialize window of my application?


Post Reply New Thread Subscribe

 
Thread Tools
mrTuborg

 
Member Since: Nov 09, 2009
Posts: 2
mrTuborg is on a distinguished road

mrTuborg is offline
Hello

I'm a newbie in a cocoa development. I'm trying to write my first application.
My application window have one Button, one NSComboBox and one NSTextField.

I define action to my controller class from button.
Also defines outlets from controller class to NSComboBox and NSTextField.

But.... I don't understand - how write initial values to combo and textfield when my application startups? I wrote method 'init'. But it isn't helps to me.

At this moment I have following behavior of my app:

1. Init of controller class (there I'm trying to initialize outlets fields)
2. applicationDidFinishLaunching from ...AppDelegate.m
3. EventLoop of my Application.

I need some tips to resolving my problem....
QUOTE Thanks
wmprice1240

 
Member Since: May 02, 2009
Posts: 480
wmprice1240 has a spectacular aura about
Mac Specs: MBP 2.33 4GB: MacPro 8 Core 2.8, 16GB: MacMini 2.26 4GB: MacMin 2.53 4GB: iPhone3GS 32GB

wmprice1240 is offline
Hi, welcome to the forums.

Have a look at the awakeFromNib method

Mac Dev Center: NSNibAwaking Protocol Reference
QUOTE Thanks
mrTuborg

 
Member Since: Nov 09, 2009
Posts: 2
mrTuborg is on a distinguished road

mrTuborg is offline
Quote:
Originally Posted by wmprice1240 View Post
hi, welcome to the forums.

Have a look at the awakefromnib method

mac dev center: Nsnibawaking protocol reference
big thanks ! It works !
QUOTE Thanks

Post Reply New Thread Subscribe


« OpenGL compatibility & Snow Leopard | iPhone Developer Program on PowerPC G4 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Change window NSRect is drawn in? Meds OS X - Development and Darwin 0 01-18-2009 05:37 PM
Application Window will not go away Grimwell OS X - Operating System 1 11-08-2008 06:25 PM
How to open two instances of Firefox ? Doug b Switcher Hangout 7 07-08-2008 12:59 PM
Itunes Window Disappears shoesandsox OS X - Apps and Games 2 05-29-2008 03:09 PM
Why do I need to quit? cheesehead OS X - Operating System 11 06-04-2006 12:22 PM

All times are GMT -4. The time now is 08:00 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?