Re: Oracle and Objective C++

2008-09-05 Thread Scott Ribe
Also file a bug report with Oracle: describe the issue and suggest to them that if they're using C++, they ought to use namespaces in order to avoid naming conflicts. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice __

Re: Posting Keyboard Events

2008-09-05 Thread Ken Thomases
On Sep 5, 2008, at 9:15 PM, Dave DeLong wrote: How on earth can I post system keyboard events (without getting a beep)? You know, there are plenty of occasions when typing a letter causes a beep. In particular, if there's no responder which is ready to accept keyboard input. Is there a

Re: Binding to an NSSet

2008-09-05 Thread Ken Thomases
On Sep 5, 2008, at 8:58 AM, Chris Backas wrote: I may be overlooking a relevant piece of documentation, but I have a property which is a Set, and I want to use an NSArrayController and an NSTable to manage it. NSArrayController has a "contentSet" key that I bound to my set property withou

Posting Keyboard Events

2008-09-05 Thread Dave DeLong
Hi everyone, I'm having a heck of a time figuring out how to post keyboard events. I've been working on this for a couple hours, googling everything I can think of, but I'm still stuck. First off, I'm aware of the functions: CGPostKeyboardEvent() CGEventCreateKeyboardEvent() CGEventPost()

Re: Core Data Form

2008-09-05 Thread Jon Buys
> NSManagedObject *hostObj = [NSEntityDescription > insertNewObjectForEntityForName:@"Host" inManagedObjectContext:[[NSApp > delegate] managedObjectContext]]; > Ahhh... there's what I was missing: the [NSApp delegate] part of declaring a new entity. I'm not at my Mac right now, but I'll give tha

Binding to an NSSet

2008-09-05 Thread Chris Backas
Hello all, I may be overlooking a relevant piece of documentation, but I have a property which is a Set, and I want to use an NSArrayController and an NSTable to manage it. NSArrayController has a "contentSet" key that I bound to my set property without a problem, it displays in my table

Re: Strange Strange Bug

2008-09-05 Thread Steve Cronin
Kai; OK That seems reasonable but: why do I not see this behavior anywhere else? why have I never seen it before now? why if I restart XCode does the 'bad' instance fall on exactly the same string? Thanks, Steve On Sep 5, 2008, at 4:11 AM, Kai wrote: Steve, looks like the debugger tries

[MEET] : LA CocoaHeads next Thursday, 9/11 7:30pm

2008-09-05 Thread Rob Ross
Hey LA CocoaHeads. Next week we have our study group meeting for the Aaron Hillegass book "Cocoa Programming for Mac OS X, 3rd Edition". http://search.barnesandnoble.com/Cocoa-Programming-for-Mac-OS-X/Aaron- Hillegass/e/9780321503619/?itm=1 We'll be covering chapters 4-6. Please jot down a

Re: [Q] How to enable Copy & Paste in a text field of a Final Cut Pro plugin window?

2008-09-05 Thread JongAm Park
Darrin Cardani wrote: On Sep 5, 2008, at 11:26 AM, JongAm Park wrote: How are you doing, all? I wrote a Final Cut Pro plugin which had a few NSTextFields on it. What I figured out is that the Final Cut's Edit=>Copy & Paste menu are not enabled and it doesn't allow copy and paste text for the

Re: string convertion: converting getter name to setter

2008-09-05 Thread steph thirion
On Sep 5, 2008, at 5:36 PM, Sherm Pendley wrote: And, the conceptual docs devote an entire page to detailing how scalar and structure variables are supported, including specifically what types are supported, and what object classes are used to "wrap" them:

Re: Keyboard accelerators

2008-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 08 à 21:40, Peter Hudson a écrit : I need to set the combination of option + command + up / down arrow in the main menu. It does not seem to be possible to do this in interface builder. Any suggestions ? Peter Yes, doing it in Interface Builder . What do you mea

initialFirstResponder set but has no effect

2008-09-05 Thread Keith Duncan
I'm writing a new NSControl subclass which -acceptsFirstResponder but I can't get it to become the firstResponder when the window loads. I've set the window's initialFirstResponder outlet to the control but that has no effect. I know the view works because if I send - makeFirstResponder then

Keyboard accelerators

2008-09-05 Thread Peter Hudson
I need to set the combination of option + command + up / down arrow in the main menu. It does not seem to be possible to do this in interface builder. Any suggestions ? Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: submit textfield without pressing ener

2008-09-05 Thread Ronnie B
Thanks Tim, [loginWindow makeFirstResponder:nil]; worked for me Ron On Fri, Sep 5, 2008 at 2:44 PM, Tim Isted <[EMAIL PROTECTED]> wrote: > Depending on how you're implementing your login dialog, if you have a > method that is called when the ok button is clicked and you have IBOutlets > for t

Re: submit textfield without pressing ener

2008-09-05 Thread Tim Isted
Depending on how you're implementing your login dialog, if you have a method that is called when the ok button is clicked and you have IBOutlets for the text field or the login dialog itself, in that method you can either: a) call [theTextField commitEditing]; on the text field or b) cal

Re: understanding conversions between CF and NS datatypes

2008-09-05 Thread Marcel Weiher
On Sep 5, 2008, at 4:52 , Michael Ash wrote: But at run time they are the same type. If you disagree, just create an NSArray and a CFArray (with the standard CFType callbacks) and try to tell the difference between them! This is true for NSArray, because it will create an NSCFArray under t

[Q] How to enable Copy & Paste in a text field of a Final Cut Pro plugin window?

2008-09-05 Thread JongAm Park
How are you doing, all? I wrote a Final Cut Pro plugin which had a few NSTextFields on it. What I figured out is that the Final Cut's Edit=>Copy & Paste menu are not enabled and it doesn't allow copy and paste text for the text fields on the plugin window. I tried checking how other FxP plug

submit textfield without pressing ener

2008-09-05 Thread Ronnie B
Hi All. I have a login dialog with a text field for password and OK and Cancel buttons. But, unless I hit Enter key, the text field value does not get submitted. What can I do to have it working only with the OK buttons, Thanks, R. ___ Cocoa-dev mail

Re: string convertion: converting getter name to setter

2008-09-05 Thread Sherm Pendley
On Fri, Sep 5, 2008 at 11:20 AM, steph thirion <[EMAIL PROTECTED]> wrote: > > By the way, I don't have much experience with profiling, I've only used > Instruments a bit to check for leaks. Is Shark better than instruments for > this type of optimizations? I haven't used Instruments, just Shark.

Re: Oracle and Objective C++

2008-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 08 à 17:13, Bradley Randy a écrit : But I get the following errors when I try to compile it. Line Location occiAQ.h:280: error: 'oracle::occi::aq::Subscription::Protocol' has a previous declaration here Line Location occiAQ.h:280: error: 'oracle::occi::aq::Subscription::Protoco

Re: Core Data Form

2008-09-05 Thread Jim Turner
Jon, First off, unless you're doing something special you don't need to create custom classes for each entity. If your managed object really is just slinging strings, leave the class as NSManagedObject and create a new entity with: NSManagedObject *hostObj = [NSEntityDescription insertNewObjectF

Re: string convertion: converting getter name to setter

2008-09-05 Thread steph thirion
On Sep 5, 2008, at 7:42 AM, Sherm Pendley wrote: Frankly, this smells a *lot* like premature optimization. Do you have any evidence that the simple solution doesn't perform acceptably? That is, have you written your code the easy way first, and profiled it with Shark? you're right. I'

Re: Oracle and Objective C++

2008-09-05 Thread Bradley Randy
> But I get the following errors when I try to compile it. > > Line Location occiAQ.h:280: error: > 'oracle::occi::aq::Subscription::Protocol' has a previous declaration here > Line Location occiAQ.h:280: error: > 'oracle::occi::aq::Subscription::Protocol' has a previous declaration here > Li

Re: Getting location for an NSStatusItem

2008-09-05 Thread dexter morgan
I've found something here: http://mattgemmell.com/2008/03/04/using-maattachedwindow-with-an-nsstatusitem On Fri, Sep 5, 2008 at 1:59 PM, dexter morgan <[EMAIL PROTECTED]> wrote: > Hello list, > I would to show an NSWindow at the bottom of my NSStatusItem. How can > I get the location of it? > Than

Getting location for an NSStatusItem

2008-09-05 Thread dexter morgan
Hello list, I would to show an NSWindow at the bottom of my NSStatusItem. How can I get the location of it? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: understanding conversions between CF and NS datatypes

2008-09-05 Thread Michael Ash
On Fri, Sep 5, 2008 at 3:24 AM, Negm-Awad Amin <[EMAIL PROTECTED]> wrote: > > Am Do,04.09.2008 um 20:20 schrieb Michael Ash: > >> On Thu, Sep 4, 2008 at 1:40 PM, Negm-Awad Amin <[EMAIL PROTECTED]> >> wrote: >>> >>> Am Do,04.09.2008 um 18:27 schrieb Michael Ash: >>> On Thu, Sep 4, 2008 at 10:41

Re: Accessing SDL Frameworks Bundled with Leopard...

2008-09-05 Thread John Joyce
Well, thanks. I guess I must have installed it at some point, but I don't recall downloading it... I wonder if it was packaged with something else... well good to know I hadn't lost my mind in thinking that it was strange that I had not seen that there before ___

Re: Changing the model behind contoller's back?

2008-09-05 Thread Oleg Krupnov
> For a Core Data to-many property, which is implemented as a NSMutableSet, you > can use: >[employee mutableSetValueForKey:@"directReports"] > as a KVO-compliant set proxy, and send it any messages you would normally > send to a set, such as addObject: or removeObject: or removeAllObjects or

Re: Strange Strange Bug

2008-09-05 Thread Kai
Steve, looks like the debugger tries to inspect your uninitialized string pointers. And it happens that the stack location assigned to the 6th string pointer still contains the address of a now deallocated object left there when another method exited. So this is a debugger-only problem an

Re: How to observe NSTreeController in a custom view?

2008-09-05 Thread Oleg Krupnov
> In general, it's not necessary for the observer to keep a copy of the old > array. However, there's a longstanding bug in NSArrayController that means it > doesn't pass the correct change information, so the sample code you're > looking at might be working around this bug. It's only lame becau

Re: understanding conversions between CF and NS datatypes

2008-09-05 Thread Negm-Awad Amin
Am Do,04.09.2008 um 20:20 schrieb Michael Ash: On Thu, Sep 4, 2008 at 1:40 PM, Negm-Awad Amin [EMAIL PROTECTED]> wrote: Am Do,04.09.2008 um 18:27 schrieb Michael Ash: On Thu, Sep 4, 2008 at 10:41 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: Am Sa,30.08.2008 um 05:22 schrieb Michael Ash:

Re: How to observe NSTreeController in a custom view?

2008-09-05 Thread Quincey Morris
On Sep 4, 2008, at 23:10, Oleg Krupnov wrote: In the samples I have seen, custom views observe linear arrays (NSArrayControllers). When the observeValue:forKey: message is sent to the custom view, it checks what happened to the array. Because the change dictionary does not help in this case, the

Re: Changing the model behind contoller's back?

2008-09-05 Thread Quincey Morris
On Sep 4, 2008, at 23:20, Oleg Krupnov wrote: You are right, but what KVC messages I should send to the model in case of unordered sets, e.g. if I use Core Data? According to the Core Data docs (http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html#/

Strange Strange Bug

2008-09-05 Thread Steve Cronin
Folks; OK this behavior has me a little spooked... This behavior occurs the first time through the method! I have a breakpoint set at the first line of a method, which happens to be a NSLog(@"Ready"); As is normal I have my local variable declarations at the beginning of the method: