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'?

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.

--Graham


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to