Re: Disturbing Control Problem in Tiger [Solved]
Re: Disturbing Control Problem in Tiger [Solved]
- Subject: Re: Disturbing Control Problem in Tiger [Solved]
- From: John Nairn <email@hidden>
- Date: Thu, 23 Jun 2005 17:13:37 +0200
Your idea to look at the control level solved this problem, but did not answer why old code worked before and not in Tiger or all the other issues I have on programmatically created controls.
Here is better code (and it works) to copy button
// copy button to new box - (void)copyButton:(NSButton *)srcBtn inBox:(NSBox *)box { // new NSButton NSButton *newBtn=[[NSButton alloc] initWithFrame:[btns[srcBtn frame]]; [newBtn setCell:[[srcBtn cell] copyWithZone:nil]]; [box addSubview:newBtn]; [newBtn release]; }
--------------- John Nairn (1-801-581-3413, FAX:1-801-581-4816)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden