• 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: Cocoa user pane equivalent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cocoa user pane equivalent? (From: Jo Meder <email@hidden>)
 >Re: Cocoa user pane equivalent? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Need localization-proof method of transporting dates.
  • Next by Date: Re: Beachball on Lengthy Task
  • Previous by thread: Re: Cocoa user pane equivalent?
  • Next by thread: Re: Cocoa user pane equivalent?
  • Index(es):
    • Date
    • Thread