• 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 13:25:16 -0800

I had thought that this customized NSView would have been allocated via IB.
When I initially ran the program, the customized NSView DID initialize:


[Session started at 2006-03-04 13:20:16 -0800.]
2006-03-04 13:20:19.028 ... {EWDrawingLayer.m:initWithFrame}

But in the debugger, a get a 'nil' when accessing the same View at the
locale of its calling routine:


(gdb) po [ewMainMapView class] Cannot access memory at address 0x0

- (void)selectRegion {
    NSLog(@"{EWAppDelegate.m:selectRegion}");  <-- po call.
    [ewMainMapView sayHello];
...
...
}

So my revised question: why is it nil and how can I call its accessor?
Or...how do I maintain its allocated state?
I want to send an Image to this View and compose it.

Ric.


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.

_______________________________________________ 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: Andy Lee <email@hidden>
  • Prev by Date: NSArrays comparison
  • Next by Date: Re: Unable to access customized NSView's accessor method
  • Previous by thread: Re: Unable to access customized NSView's accessor method
  • Next by thread: Re: Unable to access customized NSView's accessor method
  • Index(es):
    • Date
    • Thread