Re: NSSpeechSynthesizer / DarkWake interaction

2012-08-16 Thread Quincey Morris
On Aug 15, 2012, at 20:31 , Jens Alfke wrote: > I have never heard the term "DarkWake" before, and I can't find anything > about it in Apple's docs apart from its name appearing in some low-level > constants. Is this the internal term for 10.8's "Power Nap"? My understanding > was that only ce

Re: Where do these come from...

2012-08-16 Thread Quincey Morris
On Aug 15, 2012, at 20:39 , Charlie Dickman <3tothe...@comcast.net> wrote: > I DO NOT call drawRect directly. I DO call [self setNeedsDisplay: YES] to > keep things going. All drawing is done from inside drawRect which has been > invoked through the use of [self setNeedsDisplay: YES], That's g

Re: Window Title drop-down menu in 10.8

2012-08-16 Thread Mike Abdullah
On 14 Aug 2012, at 05:29, James Merkel wrote: > In 10.8, what capabilities does a window need in order for it to have the > window title drop down menu? My windows don't seem to have this feature. > Does the window need to be document based? Yes. What feature(s) would you like of the dropdown?

Re: How to sandbox an included framework

2012-08-16 Thread Mike Abdullah
On 15 Aug 2012, at 18:48, Antonio Nunes wrote: > After a number of successful submissions of my sandboxed app tot he App > Store, today Apple decided to reject my app because one of the 3rd party > frameworks it includes and links against is not sandboxed. I don't recall > hearing about sandb

Re: Speed up image display for large raw images?

2012-08-16 Thread Mike Abdullah
On 16 Aug 2012, at 04:41, Marco S Hyman wrote: > On Aug 15, 2012, at 8:24 PM, Jens Alfke wrote: > >>> The images are typically 25 MB Canon 7D raw image files that have >>> been pre-alloc'ed and initWithContentsOfFile: >> >> NSImage doesn't actually load the image pixels until it needs to. Me

Re: Where do these come from...

2012-08-16 Thread Mike Abdullah
On 16 Aug 2012, at 04:02, Charlie Dickman <3tothe...@comcast.net> wrote: > Here's the whole method... it is being called from within a view's drawRect > method... > > - (void) showDiceAtX: (float) x Y: (float) y { > NSRect imageRect1, imageRect2; > NSImage *die1 = nil, *die2 = nil;

NSMetadataQuery searchScopes broken in Mountain Lion?

2012-08-16 Thread Gerd Knops
Hi, Whenever I use -setSearchScopes: in ML I get bogus results, was fine in Lion. I presume mdfind's "-onlyin" flag uses this as well, and delivers the same bogus results: gerti@sputnik(900) ~: mdfind "kMDItemFSName == 'SomeBogusFileName.xyz'" | wc -l 0 gerti@sputnik(901) ~: mdfind -only

Re: How to sandbox an included framework

2012-08-16 Thread Antonio Nunes
On 16 Aug 2012, at 07:34, Mike Abdullah wrote: Thanks for your thoughts Mike. I think they confirm my notion that this rejection was in error (either that, or I'm misunderstanding something): > On 15 Aug 2012, at 18:48, Antonio Nunes wrote: > >> After a number of successful submissions of my

Re: Mountain Lion crashes Simulator

2012-08-16 Thread Gerriet M. Denkmann
On 16 Aug 2012, at 12:51, Laurent Daudelin wrote: > Have you checked your fonts in Font Book to see if any would be damaged or > corrupted? Maybe there are duplicates? I did Font Book → File → Validate File... with /System/Library/Fonts It told me that all 37 fonts were ok. It also told me: "

Re: Where do these come from...

2012-08-16 Thread Graham Cox
On 16/08/2012, at 1:02 PM, Charlie Dickman <3tothe...@comcast.net> wrote: > Here's the whole method... it is being called from within a view's drawRect > method... > > iDie = iRand(1, 6); This is also nuts (though unrelated to your problem). You will get a new random value every time

Re: Classes incompatible with weak references

2012-08-16 Thread Jean-Daniel Dupas
Le 14 août 2012 à 09:09, Vincent Habchi a écrit : > Le 13 août 2012, à 23:47, Mike Abdullah scripsit: > >> An idea I've vaguely wondered about would be turning the isa variable into a >> tagged pointer. If you know nothing is accessing it directly (to do so was >> deprecated with the modern

Re: Basic constraints: Cancel & OK buttons

2012-08-16 Thread Rick Mann
Thanks. I keep trying to go to the constraint itself, and connect it to other views, etc. Setting a constraint requires touching UI bits in so many unrelated places. -- Rick On Aug 15, 2012, at 22:04 , Roland King wrote: > Ah - a question I asked myself many times until I watched the WWDC

Re: Classes incompatible with weak references

2012-08-16 Thread Vincent Habchi
On 16 août 2012, at 03:11, Britt Durbrow wrote: > objects must be 16-byte aligned - and that alignment requirement isn't likely > to go down, but rather up in the future; using the low bits doesn't really > cause the same issue that using the high bits did. Well, I partly disagree. There is n

Re: Classes incompatible with weak references

2012-08-16 Thread Britt Durbrow
On Aug 16, 2012, at 4:37 AM, Vincent Habchi wrote: > On 16 août 2012, at 03:11, Britt Durbrow > wrote: > >> objects must be 16-byte aligned - and that alignment requirement isn't >> likely to go down, but rather up in the future; using the low bits doesn't >> really cause the same issue that

Re: Window Title drop-down menu in 10.8

2012-08-16 Thread James Merkel
On Aug 15, 2012, at 11:25 PM, Mike Abdullah wrote: > > On 14 Aug 2012, at 05:29, James Merkel wrote: > >> In 10.8, what capabilities does a window need in order for it to have the >> window title drop down menu? My windows don't seem to have this feature. >> Does the window need to be docume

App memory

2012-08-16 Thread Charlie Dickman
Is there a system command or any other way to get application memory stats like vm_stat does for the whole system? Charlie Dickman 3tothe...@comcast.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: Why no keyboard or mousedown events?

2012-08-16 Thread Ken Thomases
On Aug 14, 2012, at 9:19 PM, Charlie Dickman wrote: > When my app is running menu bar requests are honored in a timely fashion but > neither keyboard shortcuts nor mouse clicks not in the menu bar are. > Can anybody tell me why and what to do about it? Are you running a program which has been li

Re: App memory

2012-08-16 Thread Stephen J. Butler
getrusage? On Thu, Aug 16, 2012 at 9:39 AM, Charlie Dickman <3tothe...@comcast.net> wrote: > Is there a system command or any other way to get application memory stats > like vm_stat does for the whole system? > > Charlie Dickman > 3tothe...@comcast.net > > > > > _

Re: App memory

2012-08-16 Thread Charlie Dickman
Thanks. If "integral max resident set size" means the amount of memory being used then that's exactly what I want. On Aug 16, 2012, at 11:30 AM, Stephen J. Butler wrote: > getrusage? > > On Thu, Aug 16, 2012 at 9:39 AM, Charlie Dickman <3tothe...@comcast.net> > wrote: >> Is there a system comm

Re: App memory

2012-08-16 Thread Kyle Sluder
On Aug 16, 2012, at 9:33 AM, Charlie Dickman <3tothe...@comcast.net> wrote: > Thanks. If "integral max resident set size" means the amount of memory being > used then that's exactly what I want. There is no such measurement as "the amount of memory being used." What is your actual use case? --

Re: 64-Bit Transition GuideS

2012-08-16 Thread Jerry Krinock
On 2012 Aug 15, at 22:11, Quincey Morris wrote: > From the "64-Bit Transition Guide for Cocoa": Thank you. I see the problem. There are two relevant 64-Bit Transition Guides: • 64-Bit Transition Guide • 64-Bit Transition Guide for Cocoa I didn't notice the second one and thought that all I

launch application de-elevated

2012-08-16 Thread danchik
Hello, I have a postinstall script that starts a program to do some finla configurations (the installer was elevated with password during the install), after all is done, the program starts the installed application via: [[NSWorkspace sharedWorkspace] launchApplication:appPath] which works, h

Re: launch application de-elevated

2012-08-16 Thread danchik
Hello, I have a postinstall script that starts a program to do some final configurations (the installer was elevated with password during the install), after all is done, the program starts the installed application via: [[NSWorkspace sharedWorkspace] launchApplication:appPath] which works, h

Re: __weak pointer collection firing prematurely???

2012-08-16 Thread John McCall
On Aug 15, 2012, at 6:00 PM, Britt Durbrow wrote: > On Aug 15, 2012, at 4:46 PM, John McCall wrote: >> On Aug 13, 2012, at 11:38 PM, Britt Durbrow wrote: >>> OK, I think I've isolated the issue... basically, __weak, @public, and >>> -fno-objc-arc don't like to play nice together. If you set a @pu

Re: launch application de-elevated

2012-08-16 Thread Kyle Sluder
On Thu, Aug 16, 2012, at 02:42 PM, danchik wrote: > Hello, I have a postinstall script that starts a program to do some final > configurations (the installer was elevated with password during the > install), after all is done, the program starts the installed application > via: > > [[NSWorkspac

Re: Displaying a sheet immediately after a window is opened

2012-08-16 Thread Rick Mann
On Aug 16, 2012, at 7:08 , Dmitriy Balakirev wrote: > I use undocumented NSWindowDidOrderOnScreenAndFinishAnimatingNotification. > Be careful when handling it. It seems firing more then one time, and > sometimes from thread other then main. Yeah, that was suggested to me by someone else, and

initial value of an NSPopupButton shows with delay

2012-08-16 Thread Koen van der Drift
I have an NSPopupButton that is bound to an NSArrayController in IB as follows: Content -> ac.arrangedObjects ContentValue -> ac.arrangedObjects.name SelectedObject -> File's Owner.self.currentObject The ac is bound to entities that are in my CD store (which are created when the app starts up fo

Re: Displaying a sheet immediately after a window is opened

2012-08-16 Thread Laurent Daudelin
On Aug 16, 2012, at 15:51, Rick Mann wrote: > On Aug 16, 2012, at 7:08 , Dmitriy Balakirev > wrote: > >> I use undocumented NSWindowDidOrderOnScreenAndFinishAnimatingNotification. >> Be careful when handling it. It seems firing more then one time, and >> sometimes from thread other then main.

Re: Displaying a sheet immediately after a window is opened

2012-08-16 Thread Rick Mann
I'm surprised this is so hard to do. -- Rick On Aug 16, 2012, at 16:10 , Laurent Daudelin wrote: > On Aug 16, 2012, at 15:51, Rick Mann wrote: > >> On Aug 16, 2012, at 7:08 , Dmitriy Balakirev >> wrote: >> >>> I use undocumented NSWindowDidOrderOnScreenAndFinishAnimatingNotification. >>

Re: launch application de-elevated

2012-08-16 Thread danchik
ahh, bummer... By chance, do you have a link that we can reference here for where Apple sais that? Thank You - Original Message - From: "Kyle Sluder" To: "danchik" ; Sent: Thursday, August 16, 2012 3:37 PM Subject: Re: launch application de-elevated On Thu, Aug 16, 2012, at 02:4

Re: initial value of an NSPopupButton shows with delay

2012-08-16 Thread Peter Ammon
Hi Koen, Is your window set to be visible at launch (i.e. in IB)? Try making it not visible at launch, and then ordering it onscreen after the nib is loaded. That should allow all the awakeFromNib methods to run before the window appears. Hope that helps, -Peter On Aug 16, 2012, at 3:53 PM, Ko

Re: help indexer or hiutil help

2012-08-16 Thread Shane
On Fri, Aug 10, 2012 at 4:12 PM, Shane wrote: > I'm trying to use Help Indexer.app after a long while and a few > upgrades of a working help project. When trying to select the > MyHelp.help bundle, I can't because its grayed out. Any ideas? > > But I can get into the bundle on the command line, so

Re: Perplexity with X3D and XML

2012-08-16 Thread Christopher Henrich
On Aug 16, 2012, at 12:55 AM, Jens Alfke wrote: > > On Aug 15, 2012, at 7:47 PM, Christopher Henrich > wrote: > >> The specification of the XML form for X3D requires that an MFString be >> enclosed in single quotes, and the enclosed strings must be enclosed in >> double quotes. Example: ' "

Re: Sending keyboard events with unicode strings causes Pages/Keynote/Numbers to hang

2012-08-16 Thread Huy Phan
Hi Ken, Above you mention 2-byte unicode characters and here you mention 1-byte unicode characters. What precisely do you mean? A "UniChar" is inherently 2-bytes. So the first mention (2-byte) seems redundant and the second is just wrong. Sorry for being unclear in my question, I indeed s

debugging spinning beachball problem

2012-08-16 Thread Martin Hewitson
Dear list, I've received a report from a single user saying that my app (TeXnicle) is sometimes freezing for a few seconds. So I got the user to take a Process Sample from Activity Monitor to try to figure out what's going on. Unfortunately it hasn't helped me very much. So I was wondering if

Re: How to sandbox an included framework

2012-08-16 Thread Antonio Nunes
On 16 Aug 2012, at 07:34, Mike Abdullah wrote: > > On 15 Aug 2012, at 18:48, Antonio Nunes wrote: > >> After a number of successful submissions of my sandboxed app tot he App >> Store, today Apple decided to reject my app because one of the 3rd party >> frameworks it includes and links again