FROM : Martin
DATE : Thu May 01 19:45:47 2008
What about NSControl's sizeToFit method?
-Martin
On May 1, 2008, at 7:39 PM, Randall Meadows wrote:
> I am creating a bunch of controls (at least NSTextfield,
> NSPopupButton, NSSlider, and perhaps others) programmatically (that
> will eventually be shown in an NSTableView), and would like to apply
> the "Size To Fit" feature that IB provides. However, there doesn't
> seem to be any API that does that.
>
> Does IB simply brute-force the resizing for every type of view, or
> am I missing the appropriate call in the NSView API?
>
> Thanks!
> randy
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/martin.<email_removed>
>
> This email sent to martin.<email_removed>
DATE : Thu May 01 19:45:47 2008
What about NSControl's sizeToFit method?
-Martin
On May 1, 2008, at 7:39 PM, Randall Meadows wrote:
> I am creating a bunch of controls (at least NSTextfield,
> NSPopupButton, NSSlider, and perhaps others) programmatically (that
> will eventually be shown in an NSTableView), and would like to apply
> the "Size To Fit" feature that IB provides. However, there doesn't
> seem to be any API that does that.
>
> Does IB simply brute-force the resizing for every type of view, or
> am I missing the appropriate call in the NSView API?
>
> Thanks!
> randy
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/martin.<email_removed>
>
> This email sent to martin.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Randall Meadows | May 1, 19:39 | |
| Martin | May 1, 19:45 | |
| John Stiles | May 1, 19:48 | |
| Randall Meadows | May 1, 19:55 | |
| Michael Watson | May 1, 19:58 | |
| Stéphane Sudre | May 1, 20:00 | |
| Rob Napier | May 1, 20:02 | |
| John Stiles | May 1, 20:02 | |
| RICKY SHARP | May 1, 20:53 | |
| Stuart Malin | May 1, 21:12 |






Cocoa mail archive

