• 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: Swapping isa's (was Re: Hex Edit controls (resknife))
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Swapping isa's (was Re: Hex Edit controls (resknife))
      • From: Glen Simmons <email@hidden>
    • Re: Swapping isa's (was Re: Hex Edit controls (resknife))
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: RE: Strangeness when moving data through an array.
  • Next by Date: Re: Strangeness when moving data through an array.
  • Previous by thread: Re: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Next by thread: Re: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Index(es):
    • Date
    • Thread