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

NSButton alloc creates NSControl??


  • Subject: NSButton alloc creates NSControl??
  • From: Stevos <email@hidden>
  • Date: Mon, 15 Apr 2002 22:10:08 -0500

This code looks all good and stuff to me, but it gets a warning.

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
to it. Have I found a bug here or am I just being stupid?
Thanks in advance
-Stevos
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSButton alloc creates NSControl??
      • From: Ondra Cada <email@hidden>
    • Re: NSButton alloc creates NSControl??
      • From: Jonathan Feinberg <email@hidden>
  • Prev by Date: Re: NSFileManager and aliases
  • Next by Date: Re: NSButton alloc creates NSControl??
  • Previous by thread: Re: Redrawing & erasing a path
  • Next by thread: Re: NSButton alloc creates NSControl??
  • Index(es):
    • Date
    • Thread