categories question...
categories question...
- Subject: categories question...
- From: Philip George <email@hidden>
- Date: Sun, 13 Jul 2003 04:43:49 -0500
Can someone who has some categories experience lend a hand here. I have a
category set up that adds to NSLayoutManager. It was working before I tried
over-riding the "init" method. I had another method with a totally
different name (not an over-ride in other words) which worked great, but my
init over-ride is failing at the "return self;" line with EXC_BAD_ACCESS.
What am I doing wrong?
What's the fix?
Class posing won't work because of another issue,
so that's out of the question.
How can I get this category to work?
/// CODE /////////////////////
//////////////////////////////
//////////////////////////////
#import <Cocoa/Cocoa.h>
@interface NSLayoutManager (myLayoutManagerAdditions)
- (id)init;
@end
@implementation NSLayoutManager (myLayoutManagerAdditions)
- (id)init {
if (self = [super init]) {
// do some post-init initting
// for now though, it's literally just this comment
}
return self; // here's where i get the EXC_BAD_ACCESS
}
@end
//////////////////////////////
//////////////////////////////
//////////////////////////////
Thanks.
- Philip
_______________________________________________
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.