Results 1 to 3 of 3
  1. #1


    Member Since
    Nov 09, 2009
    Posts
    2
    How to initialize window of my application?
    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....

  2. #2


    Member Since
    May 03, 2009
    Posts
    480
    Specs:
    MBP 2.33 4GB: MacPro 8 Core 2.8, 16GB: MacMini 2.26 4GB: MacMin 2.53 4GB: iPhone3GS 32GB
    Hi, welcome to the forums.

    Have a look at the awakeFromNib method

    Mac Dev Center: NSNibAwaking Protocol Reference

  3. #3


    Member Since
    Nov 09, 2009
    Posts
    2
    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 !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Searching for an Application/Window Profiling Application
    By AwesomeAttorney in forum OS X - Apps and Games
    Replies: 0
    Last Post: 08-30-2012, 10:10 PM
  2. Google Chrome: Application Window?
    By GMCometh in forum OS X - Apps and Games
    Replies: 2
    Last Post: 05-28-2012, 04:22 AM
  3. Application window open but can't be selected
    By beanlynch in forum OS X - Apps and Games
    Replies: 1
    Last Post: 11-02-2010, 10:17 PM
  4. Application Window will not go away
    By Grimwell in forum OS X - Operating System
    Replies: 1
    Last Post: 11-08-2008, 07:25 PM
  5. application window...
    By Pailong in forum OS X - Operating System
    Replies: 3
    Last Post: 03-04-2008, 03:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •