Re: programmatic interface changes
Re: programmatic interface changes
- Subject: Re: programmatic interface changes
- From: Scott Anguish <email@hidden>
- Date: Fri, 17 Oct 2003 04:44:44 -0400
On Oct 17, 2003, at 2:04 AM, Ivan Kourtev wrote:
I am not sure how to start about (b). I assume I have to somehow
'construct' a new NSProgresIndicator interface element and 'tell' the
window so show it at the certain location. Is this correct or not?
In general, how does one go about dynamically changing interfaces as
described (adding, deleting, etc. interface objects)?
You can create the items to be inserted in InterfaceBuilder... then
just copy the view, or set it in the new parent view..
So, assuming that theSubView is a view containing the progressView (or
the progressView itself).. theViewToPutItIn might be the windows
contentView...
setFrame:
frame
setFrameOrigin:
setFrameSize:
alter the view location in the new window using one or more of the
above... and then
[theViewToPutItIn addSubview:theSubView]
[theViewToPutItIn setNeedsDisplay:YES];
this
http://www.snoize.com/Code/DisclosableView.tar.gz might serve as a
useful example... you might be able to use it directly in fact.
_______________________________________________
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.