question about identifying old apps

2011-09-16 Thread Rick C.
Hi, This might seem a bit outdated but it's useful for my work...regarding old ppc apps (I'm assuming ppc but could be classic) there are some that are not bundles and also they do not carry the .app extension. However in Finder they do show Application under the Kind field. My question would

Re: question about identifying old apps

2011-09-16 Thread Matt Gough
They should have a File type of 'APPL'. (There are a few other file types that are also used for applications, but I can't remember them off hand.) Or you can get launch services to let you know if its an app or not. See LSInfo. Matt On 16 Sep 2011, at 12:14, Rick C. wrote: > Hi, > > This mi

Re: NSImage initWithPasteboard

2011-09-16 Thread Jens Alfke
On Sep 15, 2011, at 2:57 AM, Eugene Rudenko wrote: > I have a JNI method to get image from clipboard. After 5-6 calls a method, I > have a hanging method. It hanging at call initWithPasteboard. > Although the method canInitWithPasteboard returns true. The code you posted looks fine, so the probl

NSTextField : Tooltip show Whole String, only when Truncated

2011-09-16 Thread Jerry Krinock
I'd like an NSTextField to display a tooltip showing its entire text whenever it's truncating. I think that NSTableView has this behavior built in, if you simply don't set a tooltip on a cell. But NSTextField does not. It *sure would be nice* if NSTextField had an observable 'isTruncating" pr

Proper handling of NSSavePanel and 'Do you want to replace it?' dialog

2011-09-16 Thread Sean McBride
Hi all, NSSavePanel will automatically show the user a 'Do you want to replace' sheet if he tries to save with an existing name. What the correct way to proceed when replacement is needed? Option 1: First delete the existing item yourself. I've read this doesn't work when sandboxed (not sure

Re: question about identifying old apps

2011-09-16 Thread Sean McBride
On Fri, 16 Sep 2011 19:14:35 +0800, Rick C. said: >This might seem a bit outdated but it's useful for my work...regarding >old ppc apps (I'm assuming ppc but could be classic) there are some that >are not bundles and also they do not carry the .app extension. However >in Finder they do show Appli

Re: question about identifying old apps

2011-09-16 Thread Charles Srstka
On Sep 16, 2011, at 7:11 AM, Matt Gough wrote: > They should have a File type of 'APPL'. > > (There are a few other file types that are also used for applications, but I > can't remember them off hand.) The only ones I can think of would be ‘dfil’ for desk accessories, and ‘APPC’ and ‘cdev' fo

Re: NSTextField : Tooltip show Whole String, only when Truncated

2011-09-16 Thread Corbin Dunn
hi Jerry, Your right; NSTextField does not have that feature (it is called "expansion tool tips" in NSTableView). Please log a bug requesting it in AppKit. corbin On Sep 16, 2011, at 10:47 AM, Jerry Krinock wrote: > I'd like an NSTextField to display a tooltip showing its entire text whenever

Re: Proper handling of NSSavePanel and 'Do you want to replace it?' dialog

2011-09-16 Thread Nick Zitzmann
On Sep 16, 2011, at 12:33 PM, Sean McBride wrote: > Hi all, > > NSSavePanel will automatically show the user a 'Do you want to replace' sheet > if he tries to save with an existing name. > > What the correct way to proceed when replacement is needed? > > Option 1: First delete the existing it

Is anyone else noticing more duplicate keypresses (bad debounce) in Lion?

2011-09-16 Thread G S
Hi all. I'm seeing lots of duplicated keypresses on Lion. On my laptop, they're often (but not always) coincident with a little blip of disk activity; it's as if the system queues the keypress while it's momentarily busy, and then issues it twice when the disk blip is over. If I press a key duri

Re: question about identifying old apps

2011-09-16 Thread Rick C.
Great thanks to all for the replies this is most helpful! On Sep 17, 2011, at 2:51 AM, Charles Srstka wrote: > On Sep 16, 2011, at 7:11 AM, Matt Gough wrote: > >> They should have a File type of 'APPL'. >> >> (There are a few other file types that are also used for applications, but I >> can'

Re: Is anyone else noticing more duplicate keypresses (bad debounce) in Lion?

2011-09-16 Thread Andy Lee
Not sure what the connection is to Cocoa development, but FWIW I've noticed that when I start a burst of fast typing in a text field, sometimes my first character appears somewhere in the middle or at the end. It's as if something is screwing up the event queue. I can understand if there's a lag

Re: Is anyone else noticing more duplicate keypresses (bad debounce) in Lion?

2011-09-16 Thread Jerry Krinock
On 2011 Sep 16, at 18:09, G S wrote: > I'm seeing lots of duplicated keypresses on Lion. I'm not seeing any of those. On 2011 Sep 16, at 18:27, Andy Lee wrote: > Not sure what the connection is to Cocoa development, but FWIW I've noticed > that when I start a burst of fast typing in a text f

sheet not receiving all events?

2011-09-16 Thread Torsten Curdt
On a button click I open a NSPanel custom sheet - just like described in the docs - (void) buttonTest:(id)sender { [NSApp beginSheet:self.panel modalForWindow:self.window modalDelegate:self didEndSelector:nil contextInfo:nil]; [NSApp runModalForWindow:s

Re: sheet not receiving all events?

2011-09-16 Thread Jens Alfke
On Sep 16, 2011, at 7:40 PM, Torsten Curdt wrote: >[NSApp beginSheet:self.panel > modalForWindow:self.window >modalDelegate:self > didEndSelector:nil > contextInfo:nil]; > >[NSApp runModalForWindow:self.panel]; >[NSApp endSheet:self.panel]; >[self.pan