Move or resize NSButton?

Discussion in 'Mac Programming' started by robvas, Dec 10, 2011.

  1. macrumors 68000

    Joined:
    Mar 29, 2009
    Messages:
    1,782
    Location:
    USA
    #1
    Is there a way to move or resize an existing NSButton? Or would I have to destroy it then re-create it with the new size or location?
     
  2. macrumors 68000

    Sydde

    Joined:
    Aug 17, 2009
    Messages:
    1,896
    #2
    NSButton is a subclass of NSView, so it inherits NSView's methods. Look at NSView, perhaps you can find what you need there.
     
  3. macrumors 65816

    Joined:
    Sep 8, 2006
    Messages:
    1,494
    #3
    I find that you can alter more of the attributes if you create things through programming them instead of interface builder. Like TextFiled's you can determine the vertical height which you can not do, from what I have seen, in IB
     

Share This Page