• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disturbing Control Problem in Tiger [Solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)
Web Page: http://www.mse.utah.edu/~nairn

 _______________________________________________
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

References: 
 >Disturbing Control Problem in Tiger (From: John Nairn <email@hidden>)
 >Re: Disturbing Control Problem in Tiger (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Relying on shell tools to be installed? Where do you find this out?
  • Next by Date: Re: Disturbing Control Problem in Tiger
  • Previous by thread: Re: Disturbing Control Problem in Tiger
  • Next by thread: Using -mouseEntered/Exited in a tab view
  • Index(es):
    • Date
    • Thread