Re: Cocoa user pane equivalent?
Re: Cocoa user pane equivalent?
- Subject: Re: Cocoa user pane equivalent?
- From: Jo Meder <email@hidden>
- Date: Mon, 6 Apr 2009 13:20:01 +1200
Hi Graham,
On 6/04/2009, at 1:07 AM, Graham Cox wrote:
On 05/04/2009, at 12:20 PM, Jo Meder wrote:
The one thing I'm not really clear on is what the Cocoa equivalent
of a Carbon user pane control would be. It seems that there isn't
really a direct equivalent in Cocoa and that the best way to do
things would be to have a custom view inheriting from NSControl.
Would that be right?
Jo, do you mean a dialog 'user item'?
No, a user pane control i.e. created with CreateUserPaneControl() and
of type kControlKindUserPane.
These items did nothing except define a rectangular region of the
dialog that you could customise in some unspecified way. The cocoa
equivalent would be NSView, though it gives you far more than just
a frame and then leaves the rest to you.
You could certainly subclass NSControl if you wanted a custom
control (NSControl subclasses NSView) but NSView is more flexible
in many ways, as all more general objects tend to be.
Thanks for confirming that.
Regards,
Jo Meder
_______________________________________________
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