• 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: NSWindow With IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow With IB


  • Subject: Re: NSWindow With IB
  • From: Philip Bridson <email@hidden>
  • Date: Thu, 1 May 2008 22:02:46 +0100

Why is it that when you get the answer you always wonder why you hadn't thought of it yourself? I've done this method so many times with other classes but it just didn't occur to me. Never-mind.

Thank you for your help.

Phil.

On 1 May 2008, at 21:58, Kyle Sluder wrote:

On Thu, May 1, 2008 at 4:53 PM, Philip Bridson <email@hidden> wrote:
I don't mind manipulating it with code if I have to.

Subclass NSWindow and override -initWithContentRect:styleMask:backing:defer to pass your custom window mask to super's implementation. Then in the identity pane of IB, set the class of the window to your custom class. At runtime, things should Just Work(TM).

--Kyle Sluder

_______________________________________________

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


References: 
 >NSWindow With IB (From: Philip Bridson <email@hidden>)
 >Re: NSWindow With IB (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: NSWindow With IB
  • Next by Date: NSArrayController issue
  • Previous by thread: Re: NSWindow With IB
  • Next by thread: NSArrayController issue
  • Index(es):
    • Date
    • Thread