Re: Dynamic User Interface with Cocoa
Re: Dynamic User Interface with Cocoa
- Subject: Re: Dynamic User Interface with Cocoa
- From: Daniel Todd Currie <email@hidden>
- Date: Fri, 25 Jun 2004 13:39:22 -0700
Absolutely.
My approach for such things is to create my window in IB showing
everything there is to show; then in awakeFromNib I hide the things
that I want hidden initially and resize my window accordingly. This
way you can link up your IBOutlets/IBActions etc.
-- DTC
On 2004 Jun 25, at 13:22, Alexander F. Hartner wrote:
Is is possible to use a View created / customised in IB ? I was
thinking about designing various views in IB and then include them
dynamically in my code. If this is at all possible, could I still use
IB's outlet / action features or would i have to code them by hand as
Chris describes it ?
On 23 Jun 2004, at 1:13, Chris Hanson wrote:
On Jun 22, 2004, at 1:53 PM, Alexander F. Hartner wrote:
You wouldn't perhaps have some sample code illustrating the add to
the subview and the subsequent event handling ? That would be really
helpful to me.
You can just instantiate a control with +alloc/-initWithFrame:, set
its bindings with -bind:... or set its target & action with
-setTarget:/-setAction:, and add it to another view with
-addSubview:. It's up to you to size, position, and fully configure
the control when you do this rather than use Interface Builder.
What do you mean by "subsequent event handling"?
-- Chris
--
Chris Hanson <email@hidden>
http://www.livejournal.com/users/chanson/
_______________________________________________
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.