Re: NSGlyph

2008-10-04 Thread hatzicware
Sorry, that method should have looked like this: [path appendBezierPathWithGlyph:'+' inFont:[NSFont userFontOfSize: 14.0]] On 4 Oct, 2008, at 11:59, [EMAIL PROTECTED] wrote: I can't figure out how NSGlyph works in methods like this: [path appendBezierPathWithGlyph:'x' inFont:[NSFont use

NSGlyph

2008-10-04 Thread hatzicware
I can't figure out how NSGlyph works in methods like this: [path appendBezierPathWithGlyph:'x' inFont:[NSFont userFontOfSize: 14.0]] (Of course 'path' is an NSBezierPath.) What I get on the screen is not an '+', but an upper-case "H" in some outline font. And when I put in explicit Unicode

Re: NSCoding protocol

2008-10-03 Thread hatzicware
Thanks for your replies. But now I'm confused about how to de-allocate MyClass. Given this in its initialisation: S1 = @"a string"; S2 = [[NSString alloc] init]; S3 = [NSString string]; I would only release S2 in the dealloc method. But if the class has been unarchi

NSCoding protocol

2008-10-03 Thread hatzicware
I want MyClass to conform to the NSCoding protocol. But I'm puzzled about how to implement the initWithCoder: method. Suppose I have this in MyClass.h: NSString *S1, *S2, *S3; and this in its init function: S1 = @"a string"; S2 = [[NSString alloc] init]; S3 =