ahhh...i'm so pissed...
ahhh...i'm so pissed...
- Subject: ahhh...i'm so pissed...
- From: Lemon Obrien <email@hidden>
- Date: Tue, 3 Jun 2008 23:11:29 -0700 (PDT)
i started a new project and i'm learning
obj-c/xcode/ib etc. not a problem; it's ok; could be
way better, doesn't matter though.
so my problem is: i need to create a "back/forward"
control like in safari/itunes, i'll later use web-kit.
i can create the toolbar, and i can create the
NSSegmentedControl. i've tried several different ways
to do it. and it bust given sample code from apple. It
bust on NSSegementedCell (the contained object)
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
2008-06-03 22:37:12.316 DesktopClient[10792:813] An
uncaught exception was raised
2008-06-03 22:37:12.317 DesktopClient[10792:813] ***
-[NSSegmentedCell cell]: unrecognized selector sent to
instance 0x12a970
2008-06-03 22:37:12.317 DesktopClient[10792:813] ***
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '***
-[NSSegmentedCell cell]: unrecognized selector sent to
instance 0x12a970'
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:
[mPageController setSegmentCount:2];
[[mPageController cell] setTag:0 forSegment:0];
[[mPageController cell] setTag:1 forSegment:1];
[mPageController setLabel:@"Import" forSegment:0];
[mPageController setLabel:@"Organize" forSegment:1];
[mPageController setWidth:70 forSegment:0];
[mPageController setWidth:70 forSegment:1];
i'm trying to make a browser; specialized db
application using web-kit; if anyone knows of an
example using the same toolbar as safari, it would be
much appreciated.
i'd also like to know if any standard images exist for
these types of buttons.
thanks
lemon
You don't get no juice unless you squeeze
Lemon Obrien, the Third.
http://www.tamago.us
_______________________________________________
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