• 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
Unable to access customized NSView's accessor method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Unable to access customized NSView's accessor method
      • From: James Bucanek <email@hidden>
    • Re: Unable to access customized NSView's accessor method
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Applescript command and sdef
  • Next by Date: Re: Applescript command and sdef
  • Previous by thread: Re: Why is NSFontManager lying to me ?
  • Next by thread: Re: Unable to access customized NSView's accessor method
  • Index(es):
    • Date
    • Thread