• 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
Re: Custom View initialization: where?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom View initialization: where?


  • Subject: Re: Custom View initialization: where?
  • From: Markus Spoettl <email@hidden>
  • Date: Fri, 2 May 2008 19:34:56 -0700

On May 2, 2008, at 7:11 PM, Graham Cox wrote:
Sounds OK - so post your code. The documentation is correct.


Well the code is totally straight forward:

@interface MyView : NSView {
    MyObjectData *data;
}

@property (readonly) MyObjectData *data;

- (id)initWithFrame:(NSRect)frame;

@end


@implementation MyView

@synthesize data;

- (id)initWithFrame:(NSRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        data = [[MyObjectData alloc] init];
    }
    return self;
}

@end

The view is instantiated correctly because it draws right. When I put the debugger breakpoint in initWithFrame: it doesn't get called. Is there something wrong with this?

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Custom View initialization: where?
      • From: Graham Cox <email@hidden>
References: 
 >Custom View initialization: where? (From: Markus Spoettl <email@hidden>)
 >Re: Custom View initialization: where? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Mail type in-line objects
  • Next by Date: Re: Loading a .nib?
  • Previous by thread: Re: Custom View initialization: where?
  • Next by thread: Re: Custom View initialization: where?
  • Index(es):
    • Date
    • Thread