• 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
Custom Shaped Buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Shaped Buttons


  • Subject: Custom Shaped Buttons
  • From: ADIL SALEEM <email@hidden>
  • Date: Thu, 20 Mar 2008 05:43:31 -0700 (PDT)

Hi,

I need guidance for a problem. I want to make custom
shaped buttons (based on images) in my GUI.

By assigning image and alternate image in IB it
displays the image but the shape of the button is not
exactly as the image. I want to make the button of
exact shape as that of the image.

For that i am trying to subclass NSButton. I have
created the subclass and assigned it to my buttons,
but i have no idea what functions to
implement/overwrite in the subclass to change the
shape of the button and assign the image as the button
shape.


Also please tell me that is this the right way
(subclassing NSButton) to do what i am trying to do ?

Thank you



      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________

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

  • Follow-Ups:
    • Re: Custom Shaped Buttons
      • From: David Adalsteinsson <email@hidden>
    • Re: Custom Shaped Buttons
      • From: Jeff LaMarche <email@hidden>
  • Prev by Date: Re: Correct use of NSViewController
  • Next by Date: Re: Setting Web Proxy programmatically
  • Previous by thread: [JOB]: Cocoa Developer with OpenGL Experience
  • Next by thread: Re: Custom Shaped Buttons
  • Index(es):
    • Date
    • Thread