• 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: NSButton alloc creates NSControl??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButton alloc creates NSControl??


  • Subject: Re: NSButton alloc creates NSControl??
  • From: Jonathan Feinberg <email@hidden>
  • Date: Mon, 15 Apr 2002 23:23:57 -0400

On 4/15/02 Stevos <email@hidden> wrote:

> ball = [[NSButton alloc] initWithFrame: tempFrame];
> [ball setButtonType:NSMomentaryChangeButton];
>
>Apparently "NSControl does not respond to setButtonType"
>Except... Ball ain't a NSControl, its a NSButton..and NSButton DOES
>respond

In the header file where the variable "ball" is declared, it says

NSControl *ball;

If you change the declaration to

NSButton *ball;

you will no longer get that warning.

--
Jonathan Feinberg email@hidden Inwood, NY, NY
http://MrFeinberg.com
_______________________________________________
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.

References: 
 >NSButton alloc creates NSControl?? (From: Stevos <email@hidden>)

  • Prev by Date: NSButton alloc creates NSControl??
  • Next by Date: Re: NSFileManager and aliases
  • Previous by thread: NSButton alloc creates NSControl??
  • Next by thread: Re: NSButton alloc creates NSControl??
  • Index(es):
    • Date
    • Thread