Re: Getting glyphs for surrogate characters ??

2009-09-27 Thread Anders Lassen
know. Anders Lassen On Sep 26, 2009, at 7:17 PM, Anders Lassen wrote: Hi, I have a problem generating glyph for surrogate characters. I have considered not to use glyphs directly, but since I need very fine control of the drawing of the glyph, this is a good solution for me. Having a glyph

Getting glyphs for surrogate characters ??

2009-09-26 Thread Anders Lassen
le name like "tau", "delta", "infinity"). Kind regards, Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Displaying characters from the 'Unicode Symbols' font ?? (Solved)

2009-09-25 Thread Anders Lassen
Thanks everyone for helping. This solved my problem on how to handle characters outside the 16 bits range. Anders Lassen On Sep 25, 2009, at 8:57 PM, Aki Inoue wrote: The Unicode values beyond 16bit range are represented with a pair of UTF-16 characters in U+D800 ~ U+DFFF. See relevant

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
I have tried this but gave up, because I did not now of surrogate pairs. But I will try again. Anders Lassen On Sep 25, 2009, at 8:27 PM, Douglas Davidson wrote: On Sep 25, 2009, at 11:18 AM, Anders Lassen wrote: But still, I can not see, how this solve my problem getting characters

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
Hi Kyle, I will try to get the glyph name somewhere on the unicode website. Instead of the methods you suggest I will use: NSGlyph name = [font glyphWithName:@"summation"]; Thanks. Anders Lassen On Sep 25, 2009, at 7:39 PM, Kyle Sluder wrote: On Fri, Sep 25, 2009 at 10:34

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
Hi, Thanks this was helpful. Now I can drop _defaultGlyphForChar for a better solution. But still, I can not see, how this solve my problem getting characters outside the unicode 16 bits range into a NSString. Anders Lassen On Sep 25, 2009, at 8:03 PM, Douglas Davidson wrote: On

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
moveToPoint:NSMakePoint(rect.origin.x,rect.origin.y)]; [path appendBezierPathWithGlyph:glyph inFont:font]; This works fine for characters in the 16 bits range. Outside this range, I am in trouble since input to _defaultGlyphForChar is 16 bit. Anders Lassen

Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
7FF. Any suggestions are welcome. Kind regards, Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/U

Markers below baseline in NSRulerView

2009-08-31 Thread Anders Lassen
olving this are most welcome. Kind regard, Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.c

Re: NSTextView moves when being resized ???

2009-08-29 Thread Anders Lassen
Hi Reinhard, Thanks for helping. I have just tried to flip the coordinate system of the custom view by overriding the isFlipped method, and it did solve the problem. Kind regards, Anders Lassen On Aug 29, 2009, at 6:13 PM, Reinhard Segeler wrote: Hallo Anders, did you receive my

NSTextView moves when being resized ???

2009-08-29 Thread Anders Lassen
content view of a NSScrollView. But this does not matter - I think. Hope someone can help on this. Kind regards, Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Question about font managing (NSFont).

2009-06-29 Thread Anders Lassen
small object pointer. (my object tree will in average contain about 100-300 objects). I hope someone can help on this. Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Yes, thanks, I am sure this will help. On Jun 23, 2009, at 8:02 PM, Quincey Morris wrote: On Jun 23, 2009, at 10:32, Anders Lassen wrote: I am working on a project that involves writing math formulas.: 2 * x^2 + sqrt(3) - + aB 3 note that the above is only

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, I have learned a bit more since I started this investigation. So now I know that I can use Core Text or ATSUI to get glyph metrics. (see former email responses about this) Anders Lassen On Jun 23, 2009, at 8:39 PM, Scott Thompson wrote: On Jun 23, 2009, at 1:02 PM, Anders Lassen

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, The font descent is the maximum descent for all characters in that font, so it will not help me to position the character correct. Anders Lassen On Jun 23, 2009, at 7:37 PM, I. Savant wrote: On Jun 23, 2009, at 12:44 PM, Anders Lassen wrote: To clarify this and my original question

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
special math symbols I need to know the ascent and descent of the character. But maybe, I have now found a way to do this, although it is not tested yet. I hope that the function: ATSUGetUnjustifiedBounds will help me. Anders Lassen On Jun 23, 2009, at 7:10 PM, I. Savant wrote: On Jun

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
tting ascent/descent fot individual glyphs. On Jun 23, 2009, at 6:21 PM, I. Savant wrote: On Jun 23, 2009, at 12:14 PM, Anders Lassen wrote: I need to know the descent and ascent for individual glyphs. I have looked in several document sets -- both cocoa and carbon, but I did not have any

Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, I need to know the descent and ascent for individual glyphs. I have looked in several document sets -- both cocoa and carbon, but I did not have any luck. Hope someone can help, Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev

Re: How to align a custom view in a toolbar ???

2009-05-06 Thread Anders Lassen
Thanks, It solved the problem. On May 6, 2009, at 10:41 AM, jonat...@mugginsoft.com wrote: Try inserting an NSToolbarFlexibleSpaceItemIdentifier item into the tool bar before your custom view. On 6 May 2009, at 04:30, Anders Lassen wrote: Hi, I am working on a program where I plan to put

How to align a custom view in a toolbar ???

2009-05-05 Thread Anders Lassen
toolbar. But now, I have a severe problem. I can not figure out, how to right align the custom view. I can find anything in the documentation about this, so I hope someone in this forum can help. Thanks, Anders Lassen ___ Cocoa-dev mailing

Re: TableView leaks a lot of memory

2009-02-15 Thread Anders Lassen
Hi, Ok, I will file this as a bug. Kind regards, Anders Lassen On Feb 16, 2009, at 8:28 AM, Bill Bumgarner wrote: Can you file a bug, please, and attach either your project or a binary along w/steps to reproduce using said example? http://bugreport.apple.com/ thanks, b.bum On Feb 15

TableView leaks a lot of memory

2009-02-15 Thread Anders Lassen
:) userInfo:nil repeats:YES] retain]; } - (int)numberOfRowsInTableView:(NSTableView *)aTableView { return 10; } -(void)timer:(NSTimer*)timer { [tableView reloadData]; } @end Thanks Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Unarchiving a plugin custom control

2008-07-20 Thread Anders Lassen
Hi, I am working on a custom control, which has a few simple properties. The object is a subclass of NSBox, and is therefore initialized with initWithCoder. When the object is created for the first time and nothing has been saved to the archive, all properties are set to zero values. My

Re: IBPlugin cannot load

2008-07-16 Thread Anders Lassen
ial, but ... On Jul 16, 2008, at 10:10 PM, Ricky Sharp wrote: On Jul 16, 2008, at 2:44 PM, Anders Lassen wrote: The answers to your questions are: 1) Principals Class name is: "MyControls". That is also the name of the IBPlugin class. 2) I only have

Re: IBPlugin cannot load

2008-07-16 Thread Anders Lassen
build settings, what are the architectures? Kevin -- Kevin Cathey On Jul 16, 2008, at 11:37 AM, Anders Lassen wrote: Hi, I am pretty new to Xcode, and I hoped that I could create some custom controls using the Interface Builders Plug-In facility. But after c

Re: IBPlugin cannot load

2008-07-16 Thread Anders Lassen
uess this is ok. 3) Product Name is "MyControls". Anders Lassen On Jul 16, 2008, at 9:01 PM, Kevin Cathey wrote: Anders, A few things to check here: 1. What is the principal class you have set for the plugin (Get info on the plugin target, then go to the "Properties"

IBPlugin cannot load

2008-07-15 Thread Anders Lassen
Hi, I am pretty new to Xcode, and I hoped that I could create some custom controls using the Interface Builders plugin facility. But ... After completing all step in Chapter 2 in "Interface Builder Plug-In Programming Guide", I cannot load the Plug-In. I get a error dialog saying: "The