No symbol in current context with ptype command in gdb
No symbol in current context with ptype command in gdb
- Subject: No symbol in current context with ptype command in gdb
- From: Quentin Mathé <email@hidden>
- Date: Sun, 29 Dec 2002 21:08:37 +0100
I have a class with the method below :
- (IBAction)updateColorWell:(id)sender
{
float *hue = (float *)malloc(sizeof(float)), *saturation = (float
*)malloc(sizeof(float)), *brightness = (float *)malloc(sizeof(float)),
*alpha = (float *)malloc(sizeof(float));
float x;
[[colorWell color] getHue:hue saturation:saturation
brightness:brightness alpha:alpha];
x = [sender floatValue];
saturation = &x;
[colorWell setColor:[NSColor colorWithCalibratedHue:*hue
saturation:*saturation brightness:*brightness alpha:*alpha]];
}
The variable "sender" is an NSSlider.
I have set a breakpoint at the line "saturation = &x" and when the
debugger stop on this breakpoint, I call "ptype NSControl" with the gdb
command line then I get "No symbol 'NSControl' in current context".
I also get an error with "ptype NSObject"
I don't understand why I get these errors because I can call without
error "ptype NSView" and "ptype NSResponder" and the class NSObject,
NSResponder, NSView and NSControl are all superclass of NSSlider
Then I suppose I should be able to call the "ptype" command with anyone
of these class as parameter.
--
Quentin Mathi
email@hidden
_______________________________________________
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.