Unable to access customized NSView's accessor method
Unable to access customized NSView's accessor method
- Subject: Unable to access customized NSView's accessor method
- From: "Frederick C. Lee" <email@hidden>
- Date: Sat, 4 Mar 2006 12:25:42 -0800
Greetings:
I noticed that an accessor routine of a customized NSView doesn't
fire when called. The View did initialize.
I created a simple 'Hello' routine. But it doesn't fire.
Does anyone know why?
Ric.
[Session started at 2006-03-04 12:16:44 -0800.]
2006-03-04 12:16:47.725 EccroWorld[8521]
{EWDrawingLayer.m:initWithFrame}
2006-03-04 12:17:00.662 EccroWorld[8521] {EWAppDelegate.m:selectRegion}
<--- Missing "Hello" message.
2006-03-04 12:17:01.132 EccroWorld[8521] *** Saved ***
--------------
// appDelegate.h
@class EWDrawingLayer;
IBOutlet EWDrawingLayer *ewMainMapView;
...
--------------
// appDelegate.m
#import "EWAppDelegate.h"
#import "EWDrawingLayer.h"
...
- (void)selectRegion {
NSLog(@"{EWAppDelegate.m:selectRegion}");
[ewMainMapView sayHello]; <----------------------------
This doesn't fire.
...
}
...
=============================================
// EWDrawingLayer.h
@interface EWDrawingLayer : NSView {
NSBezierPath *bezierPath;
NSImage *_myImage;
}
- (void)sayHello;
@end
-----------------------------------
//EWDrawingLayer.m
@implementation EWDrawingLayer
#pragma mark INITIALIZATION
- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self) {
bezierPath = [[NSBezierPath bezierPath] retain];
}
NSLog(@"{EWDrawingLayer.m:initWithFrame}"); <--- OKAY.
return self;
}
...
- (void)sayHello {
NSLog(@"{EWDrawingLayer.h: sayHello} HELLO!"); <-- doesn't fire.
}
...
@end
Isaac Newton understood the impact of the Apple.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden