Re: ahhh...i'm so pissed...
Re: ahhh...i'm so pissed...
- Subject: Re: ahhh...i'm so pissed...
- From: j o a r <email@hidden>
- Date: Tue, 3 Jun 2008 23:36:50 -0700
On Jun 3, 2008, at 11:11 PM, Lemon Obrien wrote:
Here is the error from the debugger:
2008-06-03 22:37:12.313 DesktopClient[10792:813] ***
-[NSSegmentedCell cell]: unrecognized selector sent to
instance 0x12a970
<snip>
Here is the code (mPageController is an NSSegmented
Control), the code bust anytime the cell is sent a
message, i got this code from documentation:
<snip>
[[mPageController cell] setTag:0 forSegment:0];
Note that in your code you expect to call the "cell" method on an
instance of NSSegmentedControl, while at runtime you call it on an
instance of NSSegmentedCell (see the error message).
Verify that your "mPageController " outlet in Interface Builder is
hooked up to the control, and not the cell inside the control.
i'd also like to know if any standard images exist for
these types of buttons.
You can find a bunch of images here:
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/Reference/Reference.html#//apple_ref/doc/uid/20000344-DontLinkElementID_3
>
And references to how you would use them here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Images/chapter_7_section_5.html#//apple_ref/doc/uid/TP40003290-CH208-DontLinkElementID_59
>
...and please pick a more descriptive title for your messages to the
list in the future... :-)
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden