RE: Swapping isa's (was Re: Hex Edit controls (resknife))
RE: Swapping isa's (was Re: Hex Edit controls (resknife))
- Subject: RE: Swapping isa's (was Re: Hex Edit controls (resknife))
- From: Jeff Laing <email@hidden>
- Date: Wed, 1 Dec 2004 22:20:05 +1100
> This really seriously screams to me that it doesn't like having custom
> NSTextView classes wired up to NSTextView widgets. Can
> anyone else get meaning from this mess?
>
> (Please don't say, put it into bugreporter - I'm getting there...)
Ok, its in bugreporter now, and I've reproduced it even simpler. Try it
yourself.
Create a new, empty NIB.
Add a new window
Add an NSTextView
Read the attached header file
Change the class of the text view to HexHexPane
Save & Exit
Open the NIB
Try to clear the "Continuous Spell Checking" for the HexHexPane
Save & Crash
If anyone can point at what I'm doing wrong, I'd be much obliged.
// ------ HexTextView.h ------
#import <Cocoa/Cocoa.h>
#import "HexWindowController.h"
@interface HexTextView : NSTextView{}
- (IBAction)clear:(id)sender;
- (IBAction)pasteAsASCII:(id)sender;
- (IBAction)pasteAsHex:(id)sender;
- (IBAction)pasteAsUnicode:(id)sender;
- (void)editData:(NSData *)data replaceBytesInRange:(NSRange)range
withData:(NSData *)newData;
@end
@interface NSTextView (HexTextView)- (void)swapForHexTextView;
@end
@interface HexOffsetPane : HexTextView{}
@end
@interface HexHexPane : HexTextView{}
@end
@interface HexAsciiPane : HexTextView{}
@end
_______________________________________________
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