• 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: anotherDockProgram-help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: anotherDockProgram-help


  • Subject: Re: anotherDockProgram-help
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 21 Jan 2006 22:26:39 +0100

Am 21.01.2006 um 16:38 schrieb Alan Smith:
Thanks, guys! I just googled NDAlias and found the developers home page, so I think that I wouldn't have any problem implementing that. But how do you subclass NSWindow? The only way I can think of is through IB. Just like subclassing NSObject. But then how do you change the flag? Do you link the window to the subclass and then in the .m file change it?
I just hope you all don't find this to trivial and leave me in the dark.

You subclass it just like any other class:

Create a new file in Xcode from the Objective-C-Class template and then change the mention of NSObject into NSWindow. Then find the designated initialiser for NSWindow in the documentation and make sure you provide that method in your subclass, calling through to super to do the actual work.

What you do from then on I already detailed in my previous message.

If that's news to you, you might want to brush up a little on that aspect of Objective C, using either Hillegass' book, or Apple's PDF on ObjC (free download from developer.apple.com).

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
  • Follow-Ups:
    • Re: anotherDockProgram-help
      • From: Alan Smith <email@hidden>
References: 
 >anotherDockProgram-help (From: Alan Smith <email@hidden>)
 >Re: anotherDockProgram-help (From: Uli Kusterer <email@hidden>)
 >Re: anotherDockProgram-help (From: Alan Smith <email@hidden>)

  • Prev by Date: Re: Menu bindings & 'Auto Enables Items' ?
  • Next by Date: Resizing an image
  • Previous by thread: Re: anotherDockProgram-help
  • Next by thread: Re: anotherDockProgram-help
  • Index(es):
    • Date
    • Thread