Re: Hiding NSImageView
Re: Hiding NSImageView
- Subject: Re: Hiding NSImageView
- From: "Mark Munz" <email@hidden>
- Date: Sun, 1 Jun 2008 15:55:37 -0700
Careful - tabless NSTabViews are a much bigger pain to traverse under
IB3 (a step backwards from IB2).
There are several simple approaches to help resolve this issue.
Call [btn setHidden:YES]; to hide the view (10.3 or later). If you're
looking to just change the btn size, you can call setFrameSize: or if
you're just changing the image, you can call setImage: on the
NSImageView to change the images being displayed.
Mark Munz
On 6/1/08, Hamish Allan <email@hidden> wrote:
> On Sun, Jun 1, 2008 at 11:07 PM, Damien Cooke
> <email@hidden> wrote:
>
> > finding any other way of hiding them is eluding me.
>
>
> NSImageView derives from NSView, which has a "hidden" property. But
> you might find a tabless NSTabView easier: programmatically switching
> between two tabs, one for each mode.
>
>
> Hamish
>
> _______________________________________________
>
> 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
>
--
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________
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