Re: Custom Window not receiving "full" shadow

2009-09-05 Thread Uli Kusterer
Am 05.09.2009 um 03:16 schrieb Francisco Tolmasky: I am have a custom window look that I accomplish by having a borderless window with a view that paints its contents. This works fine, however, for some reason the shadow on this window is less pronounced than on normal aqua windows. I've inc

Re: Distinguishing between return and enter in NSTextField

2009-09-05 Thread Uli Kusterer
Am 04.09.2009 um 14:31 schrieb Michael Domino: My Mac has a single enter/return key (both words appear on the key, I hate not having a separate enter key). What would you do in that case? It has return and enter written on it because it doubles as both. Usually, most Mac notebooks, for exa

Re: Custom Window not receiving "full" shadow

2009-09-05 Thread Francisco Tolmasky
This is a normal window, except it is borderless, which means it falls under the category of windows that Dave described. I'm beginning to get a bit desperate and considering making a normal titled window and ripping out the root view. On Sep 5, 2009, at 12:53 AM, Uli Kusterer wrote: Am 0

Strange QTCaptureView behaviour

2009-09-05 Thread Peter Browne
Hi all, I'm returning to Cocoa after a bit of a break, and seem to be running into problems that I'm sure must have an obvious solution... Just for a bit of fun I'm trying to write a fake heads up display by using a QTCaptureView's delegate method - (CIImage *)view: (QTCaptureView *)view w

Code Signing

2009-09-05 Thread Peter Hudson
Just starting to play with code signing. I followed the instructions ( in the ADC docs ) to create my own certificate - I seem to have succeeded and a certificate has appeared in my login keychain. Using the certificate Common Name as the identifier, I run: codesign -s -v MyCertificate

Re: OpenGL screen captures

2009-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 2009 à 06:06, Development a écrit : I'm using opengl to do screen captures because that seems to be the fastest way. The problem is that I need the cursor to be visible but it is not. Is there a flag I can set with opengl to make the cursor visible? Or am I going to have to attac

Re: Services Menu in Snow Leopard

2009-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 2009 à 06:26, Gerriet M. Denkmann a écrit : I have an app which provides info about files, folders, symlinks, etc. In Leopard the Services Menu of e.g. Finder did show my "Get Information" regardless whether a file or a folder was selected. In Snow Leopard the Services Menu of F

Re: Code Signing

2009-09-05 Thread Carl Harris
Peter Hudson wrote: Using the certificate Common Name as the identifier, I run: codesign -s -v MyCertificate TestApp.app Try codesign -v -s MyCertificate TestApp.app You can also just set the Code Signing Identity build property in Xcode and it will do the signing as it builds t

subclassing with conditional method overriding

2009-09-05 Thread Alex Reynolds
Let's say I have a class interface and implementation, as follows: --- @interface A : NSObject { ... } - (void) handleTask; @end @implementation A ... - (void) handleTask { // do stuff specific to A object type... } --- Let's say I then subclass A and override -handleTask: --- @interface

Re: subclassing with conditional method overriding

2009-09-05 Thread jonat...@mugginsoft.com
On 5 Sep 2009, at 11:25, Alex Reynolds wrote: Let's say I have a class interface and implementation, as follows: --- @interface A : NSObject { ... } - (void) handleTask; @end @implementation A ... - (void) handleTask { // do stuff specific to A object type... } --- Let's say I then subcl

Re: subclassing with conditional method overriding

2009-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 2009 à 12:33, jonat...@mugginsoft.com a écrit : On 5 Sep 2009, at 11:25, Alex Reynolds wrote: Let's say I have a class interface and implementation, as follows: --- @interface A : NSObject { ... } - (void) handleTask; @end @implementation A ... - (void) handleTask { // do stuf

Re: Services Menu in Snow Leopard

2009-09-05 Thread Gerriet M. Denkmann
On 5 Sep 2009, at 11:42, Kyle Sluder wrote: On Sep 4, 2009, at 9:26 PM, "Gerriet M. Denkmann" > wrote: But, as I said, it IS working for files - only folders don't work. You need to declare that your service is valid in a UTI context that covers all your needs. Perhaps public.item? Does

Easy Question re NSWindowController

2009-09-05 Thread Brad Gibbs
I've done some testing, but I just can't make this work... I have an NSWindowController that manages a pop-up window and a button in the main window that launches the pop-up window when it's pressed. I need to pass a managedObjectContext to the window controller. If I create the NSWindowCo

Re: Easy Question re NSWindowController

2009-09-05 Thread Steven Degutis
Generally, all root objects such as NSWindowController that are placed in a NIB (and aren't the File's Owner) will have +alloc and -init called to initialize them. I've not heard of NSWindowController having -initWithWindow: called instead when inside a NIB in this way, but then again, I've also no

Re: Having problem with fetch request in NSDocument based application

2009-09-05 Thread Brent Gulanowski
Perhaps you would like to compare your code to some open source code that's out there. I've got a persistent document-based app available here: http://bitbucket.org/bgulanowski/branchline/ The app is alpha and moribund, but the Core Data part works fine. It uses SQLite, not XML, but you could cha

Re: subclassing with conditional method overriding

2009-09-05 Thread Brent Gulanowski
@implementation B - (void)handleTask { if(condition) { [super handleTask]; return; } // B implementation return; } @end On Sat, Sep 5, 2009 at 6:25 AM, Alex Reynolds wrote: > Let's say I have a class interface and implementation, as follows: > > --- > @interface A : NSObject { >

Re: Binding table columns that change at runtime

2009-09-05 Thread Brent Gulanowski
You will probably want to use KVO to observe changes to the array holding the list of column names to show. You can subclass NSArrayController. You could go all-out and add support for a new binding, or the custom controller could just add itself as an observer of the arranged objects property of t

NSString width

2009-09-05 Thread Massimiliano Gargani
Hi, anybody knows how I can get the width of a string? I'm doing a "ticker like" scrolling text and it works but it always scrolls even if the string is smaller than frame width. I want the scroll starts only if the string is wider than frame. Thanks, Max __

Re: NSString width

2009-09-05 Thread Dave Keck
http://lists.apple.com/archives/Cocoa-dev/2001/Nov/msg01347.html ___ 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 H

Re: Crash in CFRunLoopWakeUp

2009-09-05 Thread Mark Allan
On 4 Sep 2009, at 12:04 am, Greg Parker wrote: On Sep 3, 2009, at 3:41 PM, Mark Allan wrote: I've been battling with this intermittent crash for about two weeks now and can't figure it out for the life of me. I've got try/catch blocks around nearly all my code, and definitely around any code

crash question NSString

2009-09-05 Thread Rick C.
hello, i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableString appendString: method or is it possibl

Re: NSString width

2009-09-05 Thread Massimiliano Gargani
I've searched on cocoabuilder before post. I swear. Thanks a million. Max Il giorno 05/set/09, alle ore 16:32, Dave Keck ha scritto: http://lists.apple.com/archives/Cocoa-dev/2001/Nov/msg01347.html ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

crash question NSString

2009-09-05 Thread Rick C.
thanks joshua. yes i will try that. i'm having trouble to recreate the crash and that's why i asked. :-) thanks, rick From: Joshua Pennington To: Rick C. Cc: "cocoa-dev@lists.apple.com" Sent: Saturday, September 5, 2009 11:17:28 PM Subject: Re: crash qu

Re: crash question NSString

2009-09-05 Thread Steven Degutis
This error is not indicating that the receiver is invalid, but rather than your argument is nil. Thus, perform some kind of check to verify it's not nil, before passing it as an argument to the method, lest you get this error. -- Steven Degutis http://www.thoughtfultree.com/ http://www.degutis.or

Re: crash question NSString

2009-09-05 Thread Andy Lee
On Sep 5, 2009, at 10:55 AM, Rick C. wrote: i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableStr

Re: Code Signing

2009-09-05 Thread Peter Hudson
Thanks for this Carl - it works fine ! I'll post a documentation bug on this as the command line I was using ( -s -v ) is straight out of the doc. Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: crash question NSString

2009-09-05 Thread Rick C.
thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it, rick From: Andy Lee To: Rick C. Cc: cocoa dev Sent: Saturday, September 5, 2009 11:38:31 PM Subject: Re: crash question NSString On Sep 5, 2

Making an Outline View delete a rows children when the parent is deleted.

2009-09-05 Thread Joshua Garnham
How would I make a rows children be deleted when the parent is deleted? Cheers, Josh. ___ 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-adm

Re: Making an Outline View delete a rows children when the parent is deleted.

2009-09-05 Thread Kyle Sluder
On Sep 5, 2009, at 11:14 AM, Joshua Garnham wrote: How would I make a rows children be deleted when the parent is deleted? This is a model behavior, not a view behavior. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: crash question NSString

2009-09-05 Thread Kyle Sluder
On Sep 5, 2009, at 11:07 AM, "Rick C." wrote: thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it, If you want to know why you crashed, look at the backtrace. That's the one and only definitive source of this information. Poking

Re: Making an Outline View delete a rows children when the parent is deleted.

2009-09-05 Thread Quincey Morris
On Sep 5, 2009, at 11:45, Kyle Sluder wrote: On Sep 5, 2009, at 11:14 AM, Joshua Garnham > wrote: How would I make a rows children be deleted when the parent is deleted? This is a model behavior, not a view behavior. Well, yes, but OP's question wasn't phrased very well, so it may in fa

Re: crash question NSString

2009-09-05 Thread Andy Lee
On Sep 5, 2009, at 2:50 PM, Kyle Sluder wrote: On Sep 5, 2009, at 11:07 AM, "Rick C." wrote: thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it, If you want to know why you crashed, look at the backtrace. That's the one and

Re: Minimum alpha value for transparent windows

2009-09-05 Thread Gabriel Zachmann
If you are interested in mouse events in your entire window area, then you can use [NSWindow setIgnoresMouseEvents:NO] and not have to worry about "faint paint" issues. Thanks for your response, but I don't see how that would help me. Maybe that's just because I am a newbie, maybe I didn’t descr

Re: Making an Outline View delete a rows children when the parent is deleted.

2009-09-05 Thread Jack Carbaugh
That depends on your meaning. Do you only want them deleted visibly in the table/outline view OR do you want the data to be deleted permanently The table/outline is SEPARATE from the actual data. On Sep 5, 2009, at 2:14 PM, Joshua Garnham wrote: How would I make a rows children be deleted

Strange QTCaptureView behaviour

2009-09-05 Thread Peter Browne
Hi all, I'm returning to Cocoa after a bit of a break, and seem to be running into problems that I'm sure must have an obvious solution... Just for a bit of fun I'm trying to write a fake heads up display by using a QTCaptureView's delegate method - (CIImage *)view: (QTCaptureView *)view w

Composite Array Controller

2009-09-05 Thread Richard Somers
I have a simple Core Data model with two entities, A and B. Each entity has several attributes but no relationships. I need a single array controller which contains all A and B objects in the model. In Interface Builder this works. File's Owner (managedObjectContext) A Array Cont

Re: change in launch services binding behavior?

2009-09-05 Thread Matt Neuburg
On Thu, 03 Sep 2009 18:57:07 -0400, Gregory Weston said: >Matt Neuburg wrote: > >> I wonder whether someone (preferably from Apple) could provide >> details on >> how Snow Leopard has changed its algorithm for how a document is >> bound to an >> application, esp. when double-clicking the doc in th

Re: Input Managers in Snow Leopard

2009-09-05 Thread Matt Neuburg
On Fri, 4 Sep 2009 11:54:17 +0700, "Gerriet M. Denkmann" said: >I would like to modifiy apps (e.g. >TextEdit) to put miniaturized windows NOT into the dock, but on the >bottom of the screen (the way it was done in NeXTstep). I would like you not to. m. -- matt neuburg, phd = m...@tidbits.com, <

Re: Minimum alpha value for transparent windows

2009-09-05 Thread Quincey Morris
On Sep 5, 2009, at 13:43, Gabriel Zachmann wrote: If you are interested in mouse events in your entire window area, then you can use [NSWindow setIgnoresMouseEvents:NO] and not have to worry about "faint paint" issues. Thanks for your response, but I don't see how that would help me. Mayb

Re: Custom Window not receiving "full" shadow

2009-09-05 Thread Jesper Storm Bache
Custom windows not getting the default document shadow is a known issue: radar 6446459 "Cocoa need document style shadow for custom windows" Jesper Storm Bache On Sep 5, 2009, at 1:02 AM, Francisco Tolmasky wrote: > This is a normal window, except it is borderless, which means it falls > under t

Re: Services Menu in Snow Leopard

2009-09-05 Thread Gerriet M. Denkmann
On 5 Sep 2009, at 17:08, Jean-Daniel Dupas wrote: Le 5 sept. 2009 à 06:26, Gerriet M. Denkmann a écrit : I have an app which provides info about files, folders, symlinks, etc. In Leopard the Services Menu of e.g. Finder did show my "Get Information" regardless whether a file or a folder

Re: crash question NSString

2009-09-05 Thread Rick C.
thanks again everyone i will do that. rick From: Kyle Sluder To: Rick C. Cc: cocoa dev Sent: Sunday, September 6, 2009 2:50:14 AM Subject: Re: crash question NSString On Sep 5, 2009, at 11:07 AM, "Rick C." wrote: > thank you all for the help. yes i will

Re: Get error message about registered observers when Object receives dealloc message

2009-09-05 Thread Roland King
On 30-Aug-2009, at 5:53 PM, Roland King wrote: On 30-Aug-2009, at 17:46, Andreas Grosam wrote: b. The release notes say that it was wrong for this message to appear "when an object observed by a second object was deallocated, its deallocation caused the release of the second obj

Re: Termination notifications in foundation tool?

2009-09-05 Thread Luke Evans
A big thanks, Dave, Jens and Greg. The example code looks particularly promising. There's so much buried in the various Apple samples, but finding what you want is nigh impossible without having stumbled on thing before (and having a good memory). Some sort of concept index for all samples w

Re: change in launch services binding behavior?

2009-09-05 Thread Mark Munz
On Sat, Sep 5, 2009 at 5:46 PM, Matt Neuburg wrote: > Yeah, that's just FUD. It supports creator codes, but not in the same *way* > that Leopard did. And since this is a major undocumented change, which has > broken the way apps like BBEdit and Nisus (and I guess some Adobe apps) > work, I'm hopin

Re: Get error message about registered observers when Object receives dealloc message

2009-09-05 Thread Quincey Morris
On Sep 5, 2009, at 20:37, Roland King wrote: Following up on this thread from a week ago. Singapore did stop being sold out of Snow Leopard and I compiled a little test project under 10.6 to see what happened. Here's what I found. 1) If you recall the original thread, the error message abou

NSMenuItem font size of the keyboard shortcut text

2009-09-05 Thread aaron smith
Does anyone know of a way to change the font size of the keyboard shortcut text in an NSMenuItem? I use NSAttributedString to set the text on a menu item in order to change the size. But the keyboard shortcut text stays the same size. Thanks ___ Cocoa-

Re: NSString width

2009-09-05 Thread Jens Alfke
Tip: Measuring string widths is fairly expensive. (It's basically like drawing the string, minus the actual rendering of the pixels.) If you can, cache the result instead of calling it frequently. Also, keep in mind that character shapes may stick out of either edge by a few pixels, especia