Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
I have a legacy builder class that creates a Carbon window and I want to initialize an NSWindow with this WindowRef. I have a method on the builder GetProduct() that hands out the WindowRef. If I use commands like the following WindowRef w = builder.GetProduct(); ShowWindow( w ); SelectWindo

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Graham Cox
On 30/01/2011, at 9:17 PM, Andrew James wrote: > [ window makeKeyAndOrderFront ]; This should be [window makeKeyAndOrderFront:nil]; (or you could pass a valid sender, though I suspect it's ignored) --Graham ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Implementing a Find menu item like Safari? [SOLUTION]

2011-01-30 Thread Ben Golding
On 28/01/2011, at 14:43, Ben Golding wrote: > Safari has a really nice "Find" bar that scrolls down from the title pane of > the window. I'd like to do something like that in an application that I'm > developing but I can't find out whether that's generally available and how to > use it. Tha

Help Book authoring tool?

2011-01-30 Thread Luc Van Bogaert
Hello, I would like to solicite some recommendations for an authoring tool to create help books. I'm looking for a preferably freeware application, with a decent html editor. Thanks, -- Luc Van Bogaert luc.van.boga...@me.com ___ Cocoa-dev mailin

[MEET] February CocoaHeads Mac Developer Meetings

2011-01-30 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. Meetings are free and open to the public. We specialize in Cocoa, but everything Mac/iPhone programming related is welcome. Canada Ottawa/Gatineau, Ontario - Thursday, February 10, 2011 19:00 Germany Hamburg - Thursday, February

Add a view (xib) to a project

2011-01-30 Thread Max Stottrop
Hey everyone, first of all i'd like to thank all of you for this awesome list/community. I hope that i can help you sometimes... But now to my question. Can anyone of you explain me (slowly;)) how to add another view (.xib) file to my iPhone project? I tried several things, but none worked for

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
For once I actually should have "cut-and-paste": NSWindow *wrapper = [ [ NSWindow alloc ] initWithWindowRef: carbonBuilder.GetProduct() ]; [ wrapper makeKeyAndOrderFront: self]; I did have the sender being sent correctly. Window still does not show with this approach. Nice catch though. I'm g

Re: Add a view (xib) to a project

2011-01-30 Thread Kiel Gillard
1) Click once the Xcode icon in your Dock to ensure Xcode is the frontmost application. 2) From the menu bar, choose File > "New...". You will be presented with a window titled "New File". 3) Locate the column on the left hand side of the window which just opened and the section of the column la

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Graham Cox
On 31/01/2011, at 3:02 PM, Andrew James wrote: > For once I actually should have "cut-and-paste": > > NSWindow *wrapper = [ [ NSWindow alloc ] initWithWindowRef: > carbonBuilder.GetProduct() ]; > [ wrapper makeKeyAndOrderFront: self]; > > I did have the sender being sent correctly. Window sti

NSTableView selecting text within a cell

2011-01-30 Thread Ben Golding
I have an app with a NSTableView where the data is presented to the user. When the user hits "Find", I'd like to be able to scroll the table view to the visible cell (easy enough) and then select the range that matched within that field (not so easy). At present, my code looks like: NSCell *

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
I've done some investigating and still getting the behavior that the window does not display from the code below Interestingly, if you look at the two ShowWindow/SelectWindow pairs. I will see the window when the first one is uncommented only. I will not see the window when the second set i