Re: Hiding views
Re: Hiding views
- Subject: Re: Hiding views
- From: Anil R <email@hidden>
- Date: Mon, 02 Jun 2003 00:28:06 -0700
Hi,
I think I didnt explain the problem clearly. In my application I'm trying to implement feature similar to iPhoto. When I click on the import button, the bottom pane appears and are having controls for that import feature. Similarly when I click the organize button, different set of controls appears in the pane. I want to implement similar features. I checked the NSView documnetation, but there is no way to hide and unhide controls.
Idea I'm having in my mind for implementing the above feature is like this.
I'll define a custom control, embed all controls in that and when I click buttons, I'll hide/unhide the view. Will this work? If not is there any other method to implement the above feature.
similarly, I wanted to make a button visible and invisible. But there is nothing like setVisible:TRUE in cocoa.
can anybody help me in this
Thanks in advance
Cheers
Anil
On Sunday, June 01, 2003, at 11:50PM, Stiphane Sudre <email@hidden> wrote:
>
On lundi, juin 2, 2003, at 07:14 AM, Anil R wrote:
>
>
> Hi,
>
>
>
> I'm having a very specific problem. I wanted to know is there any way
>
> to hide custom views dynamically. I'm
>
> trying to implement something feature similar to iPhoto. When I
>
> navigate through the "import,organize" buttons, the bottom view
>
> chages. How to implenment similar featues. In Cocoa, how to
>
> enable/disable or "send to back/send to front " views. Can anybody
>
> help me in this
>
>
You can enable/disable Controls. There is no way for instance to
>
disable a NSBox to disable all the views inside that NSBox.
>
>
To enable/disable Controls, the answer is almost in the question:
>
[myControl setEnabled:YES/NO];
>
>
To modify the relative position of views:
>
>
file://localhost/Developer/Documentation/Cocoa/Reference/
>
ApplicationKit/ObjC_classic/Classes/NSView.html
>
>
Cf Managing the view hierarchy
>
>
To send back or bring to front, you will need to remove the view and
>
then insert it at the wanted relative position.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.