Re: anotherDockProgram-help
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