• 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
Linking an NSWindow in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking an NSWindow in IB


  • Subject: Linking an NSWindow in IB
  • From: Guy Halford-Thompson <email@hidden>
  • Date: Tue, 30 Aug 2011 22:30:26 -0700

This is somewhat of a basic question, but I am having a lot of trouble
getting it to work.

When my app loads, I check for certain parameters, and then display an NSWindow.

I have created the window in IB and also created a custom class
(MyWindow).  in IB I have given the window class MyWindow.

I have added a couple of extra functions to MyWindow and now I wish to
trigger the window to be displayed given certain conditions.

How can I display the window?

I have tried

MyWindow *win = [[MyWindow alloc] init];
[win makeKeyAndOrderFront:nil];

but it just displays a blank window...

I am pretty sure that I have not linked the window from IB properly
but I am really confused about how to do it and the apple
documentation / google don't seem to be able to help.

Thanks for any help


--
Guy Halford-Thompson
Blog                  - http://www.cach.me/blog
Twitter               - https://twitter.com/mrwooster
Google Plus       - http://gplus.name/guy
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Linking an NSWindow in IB
      • From: Ron Fleckner <email@hidden>
    • Re: Linking an NSWindow in IB
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Large over 100K pixel high ruler scroll view
  • Next by Date: LLVM 2.1 Error
  • Previous by thread: Re: Won't Applescript command use defined ivars?
  • Next by thread: Re: Linking an NSWindow in IB
  • Index(es):
    • Date
    • Thread