• 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: NSButton in NSToolbarItem does not use "small size"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButton in NSToolbarItem does not use "small size"


  • Subject: Re: NSButton in NSToolbarItem does not use "small size"
  • From: Michael Starke <email@hidden>
  • Date: Tue, 26 Feb 2013 16:28:10 +0100

Sorry for digging this up again.

As I'm no experienced developer I'm somewhat lost how to address the situation.
Is there a way to compare an NSToolbarItem with a NSButton created in IB to a one created programmatically?

If so, this might shine some light as to what is really going on.
While trying to figure out what happens I wrapped NSToolbarItem in a Proxy object to get all it's calls but it seems that I cannot get a hold of any resizing that is sent to the button's cell

Any help would be appreciated.

--Michael


On 25.02.2013, at 00:05, Kyle Sluder <email@hidden> wrote:

> Perhaps I'm not understanding your post, but
>
> On Sun, Feb 24, 2013, at 02:53 PM, Keary Suska wrote:
>> On Feb 24, 2013, at 1:11 PM, Michael Starke wrote:
>> I suspect the issue is that NSButton does not have built-in semantics for
>> control size.
>
> NSButton does indeed have built-in semantics for controlSize.
>
>> In fact, none of the cells in question are documented to
>> respond to -setControlSize is the way you are seeing, but apparently some
>> do.
>
> All NSCell instances respond to -setControlSize:.
>
>> If you consider that a button of any control size can actually be of
>> any size, how would the cell know how to resize itself, other than to
>> just change its font? And if it has an image, how would that work?
>
> As per the documentation, setting the controlSize of a cell does not
> change its font. After the cell gets -setControlSize:, someone is
> responsible for calling -sizeToFit: on the view containing that cell.
>
> --Kyle Sluder


___m i c h a e l   s t a r k e____
       geschäftsführer
       HicknHack Software GmbH
       www.hicknhack-software.com

___k o n t a k t____
       +49 (170) 3686136
       email@hidden

___H i c k n H a c k   S o f t w a r e   G m b H____
       geschäftsführer - maik lathan | andreas reischuck | michael starke
       bayreuther straße 32
       01187 dresden
       amtsgericht dresden HRB 30351
       sitz - dresden


_______________________________________________

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: NSButton in NSToolbarItem does not use "small size"
      • From: Graham Cox <email@hidden>
    • Re: NSButton in NSToolbarItem does not use "small size"
      • From: Keary Suska <email@hidden>
References: 
 >NSButton in NSToolbarItem does not use "small size" (From: Michael Starke <email@hidden>)
 >Re: NSButton in NSToolbarItem does not use "small size" (From: Keary Suska <email@hidden>)
 >Re: NSButton in NSToolbarItem does not use "small size" (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Identifying monitor configurations
  • Next by Date: Re: Programmatic Core Data Migration
  • Previous by thread: Re: NSButton in NSToolbarItem does not use "small size"
  • Next by thread: Re: NSButton in NSToolbarItem does not use "small size"
  • Index(es):
    • Date
    • Thread