Re: Printing a range of text in a particular container --

2008-12-28 Thread Martin Wierschin
Hi John, If I have a particular range of glyphs that I want to put in, say,textContainer1, and a different (as it happens, contiguous) range I want to put in textContainer2, is there a way to do it? I've tried [layoutManager drawGlyphsForGlyphRange: glyphRangeStringOne atPoint:startPo

IKImageBrowserView and the View Hierarchy

2008-12-28 Thread Jeffrey J. Early
I have had a number of troubles with IKImageBrowserView not respecting other views trying to draw over the top of it. I have worked around some of the issues, but this latest I can't seem to resolve. I am trying to "dim" several of the views in my window by simply placing a translucent view

Re: Find with Nonspacing_Mark

2008-12-28 Thread Ken Ferry
Take a look at -[NSString rangeOfString:options:range:locale:]. I'm not familiar with Thai, but NSDiacriticInsensitiveSearch seems to be the option required to make this search work. If you think that there's something wrong with this particular case, you can file a bug against Cocoa, but you mig

Re: Find with Nonspacing_Mark

2008-12-28 Thread Gerriet M. Denkmann
On 29 Dec 2008, at 03:02, "Gerriet M. Denkmann" wrote: I have a NSTextView which contains "บุ" that is: THAI CHARACTER BO BAIMAI + THAI CHARACTER SARA U, which is a consonant, followed by a vowel. When I use the Find Panel to search for "บ" (using "Contains" or: "Starts with") nothing is f

Re: Crash when sorting tree bound to NSOutlineView

2008-12-28 Thread Markus Spoettl
On Dec 28, 2008, at 6:07 PM, Kyle Sluder wrote: Is the sorting a property of your model or of the view? If the latter, why not use a sort descriptor? If the former, try using sort descriptors and then wiring up a data source to the outline view and implementing -outlineView:sortDescriptorsDidCh

Re: should it crash?

2008-12-28 Thread Mudi Dandan
On 29 Dec 2008, at 12:08 pm, Mudi Dandan wrote: This is a overwriting confirmation dialog for file copying (very much like Finder's) and I'm releasing the view because it's not needed anymore after the user has chosen. Terminology matters. By 'view' do you mean panel/window? I took 'v

Re: A Mac App & helper NSStatusItem - how to share preferences

2008-12-28 Thread Kyle Sluder
On Sun, Dec 28, 2008 at 8:41 PM, Steve Cronin wrote: > This not a managed environment nor is this issue related to users or hosts, > so it doesn't seem that CFPreferences is called for (or even helps!) In fact, CFPreferences is exactly what you need. Apple has some sample code describing how to

Re: Crash when sorting tree bound to NSOutlineView

2008-12-28 Thread Kyle Sluder
Is the sorting a property of your model or of the view? If the latter, why not use a sort descriptor? If the former, try using sort descriptors and then wiring up a data source to the outline view and implementing -outlineView:sortDescriptorsDidChange: to propagate the sort back to the model. HT

Overriding NSHTTPCookieStorage for WebView

2008-12-28 Thread Mr. Gecko
Hello, I'm trying to make my own cookie storage system for WebView and to do that I've found that I need to override NSHTTPCookieStorage but when I do that how can I make webview use my overridden one? I've already wrote the cookie system, following the rules of cookie security and all, I jus

Re: should it crash?

2008-12-28 Thread Graham Cox
On 29 Dec 2008, at 12:08 pm, Mudi Dandan wrote: This is a overwriting confirmation dialog for file copying (very much like Finder's) and I'm releasing the view because it's not needed anymore after the user has chosen. Terminology matters. By 'view' do you mean panel/window? I took 'view'

A Mac App & helper NSStatusItem - how to share preferences

2008-12-28 Thread Steve Cronin
Folks; I have an application which will have an optional helper NSStatusItem. The statusItem is a stand-alone application which can be installed as a LoginItem. I want this status item to be able to read the preferences file from the application. The user sets a number of preferences in the

Re: Crash when sorting tree bound to NSOutlineView

2008-12-28 Thread Markus Spoettl
On Dec 27, 2008, at 11:19 AM, Markus Spoettl wrote: The crash goes away. However, I have a feeling that this may be pure coincidence. Even more so as the crash also goes way if the node inserted is not on that particular location in the tree or if another node gets inserted somewhere else fi

Re: should it crash?

2008-12-28 Thread Mudi Dandan
This is a overwriting confirmation dialog for file copying (very much like Finder's) and I'm releasing the view because it's not needed anymore after the user has chosen. I have come to that conclusion that performSelectorOnMainThread: schedules messages before any other operations on the q

Printing a range of text in a particular container --

2008-12-28 Thread John Velman
If I have a particular range of glyphs that I want to put in, say,textContainer1, and a different (as it happens, contiguous) range I want to put in textContainer2, is there a way to do it? I've tried [layoutManager drawGlyphsForGlyphRange: glyphRangeStringOne atPoint:startPoint];

Re: How do I include a URL in a preprocessed Info.plist?

2008-12-28 Thread Graham Cox
On 28 Dec 2008, at 11:35 pm, Michael Nickerson wrote: I know you found a way to do this that works for you, but I just wanted to point out that you can also just put it into the InfoPlist.strings file(s) and it'll work just fine (and, in the case of Sparkle, allows you to have different UR

Re: should it crash?

2008-12-28 Thread Graham Cox
On 29 Dec 2008, at 4:34 am, Mudi Dandan wrote: When you press that button the view gets dealloced. Why? Why does the button gets updated after I release the view? What am I missing here ? Why are you releasing the view? That's the question. --Graham __

Re: Custom NSDictionaryController object class

2008-12-28 Thread Ron Lue-Sang
The dictionary controller doesn't support customizing object class. Please file an enhancement request, including info on what behaviour you're trying to add. The dictionary controller is really designed for a specific use case - showing dictionary entries in a tavleview.

Custom NSDictionaryController object class

2008-12-28 Thread Simone Manganelli
I'm having a problem with NSDictionaryController. I created a class named EPCustomClass that I want to use as the object class that NSDictionaryController uses when returning objects from methods such as -newObject or -arrangedObjects. So on wake from nib, I've sent - setObjectClass:[EPCus

Re: CATextLayer not visible when added as a sub-layer . . .

2008-12-28 Thread douglas welton
Michael, Is the geometry of your added CATextLayer correct? When you add the CATextLayer to the top-layer of your NSView do you see the added layer in the sublayers array? What's the frame of the added layer? regards, douglas On Dec 28, 2008, at 12:31 AM, Michael A. Crawford wrote: I've

should it crash?

2008-12-28 Thread Mudi Dandan
Hi All, I have a view (kind of a confirmation dialog) that has a button that dismisses it. When you press that button the view gets dealloced. This works fine when using mouse but if I assign a shortcut to the button it starts crashing randomly with the following message: *** -[NSButton

Modify appearance of NSSegmentedControl

2008-12-28 Thread Gerriet M. Denkmann
I have an NSSegmentedControl with segmentCount = 1, segmentStyle = NSSegmentStyleSmallSquare (used in a Toolbar). When the NSSegmentedControl has state = NSOnState, the backgroung is light gray with black text. I want to have a dark gray background with white text. (Same as a Round Textur

Find with Nonspacing_Mark

2008-12-28 Thread Gerriet M. Denkmann
I have a NSTextView which contains "บุ" that is: THAI CHARACTER BO BAIMAI + THAI CHARACTER SARA U, which is a consonant, followed by a vowel. When I use the Find Panel to search for "บ" (using "Contains" or: "Starts with") nothing is found. Same in TextEdit; same with any character + No

Re: How do I include a URL in a preprocessed Info.plist?

2008-12-28 Thread Michael Nickerson
On Dec 27, 2008, at 7:37 PM, Graham Cox wrote: Anyway, that's useful info, at least it explains what I'm seeing. I worked around it in a different way in the end - I added a user- defined setting for my URL then just used ${MY_URL} in the plist. That worked fine - this is similar to Phill

Re: Discovering host to use in rootProxyForConnectionWithRegisteredName:host:

2008-12-28 Thread Ken Tozier
I got my terminology mixed up. Wherever you see "local domain" substitute "domain of the computer vending the distributed object" On Dec 28, 2008, at 2:58 AM, Ken Tozier wrote: Hi I'm trying to set up a distributed object client, but can't see any way to get the local domain (not localhost