Crash using NSOpenPanel TFSVolumeInfo::GetSyncGCDQueue

2011-08-22 Thread jonat...@mugginsoft.com
>From time to time I experience the following crash when displaying NSOpenPanel >on Lion in a GC app. It has prior form according to http://www.cocoabuilder.com/archive/cocoa/283840-odd-crash.html Does anyone have any recent insight into this one? Thread 5 Crashed:: Dispatch queue: TFSVolumeInf

Exception getting shared font panel

2011-08-22 Thread Gideon King
I've had a report from a user of the following segv exception on 10.7.1: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.CoreText 0x7fff94955f89 _ZL39CTFontDescriptorsCopyAttributesInternalPK9__CFArrayPK7__CFSetjb + 270 1 com.apple.CoreText 0x7fff94955e5a CTFontDescri

NSView subclass does not call designated initializer

2011-08-22 Thread allan greenier
This is for an iPhone app.I've made a subclass (named Box) of NSView, Xcode 4.1 made it with a designated initializer for me to fill out. - (id)initWithFrame:(CGRect)frame I've dropped a view into my window in Interface Builder, set it's class to Box. I am *positive* that the view is my class. Whe

printDocument: hangs on Lion?

2011-08-22 Thread Graham Cox
When my NSDocument subclass has its printDocument: method called, Lion hangs indefinitely. Snow Leopard works fine. The top of my stack looks like this: #0 0x7fff905676b6 in semaphore_wait_trap () #1 0x7fff85ddb08e in _dispatch_semaphore_wait_slow () #2 0x7fff881b2616

Re: Exception getting shared font panel

2011-08-22 Thread P Teeson
On 2011-08-22, at 5:11 AM, Gideon King wrote: > I've had a report from a user of the following segv exception on 10.7.1: > > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > 0 com.apple.CoreText 0x7fff94955f89 > _ZL39CTFontDescriptorsCopyAttributesInternalPK9__CFArrayPK7__CFSetjb

Re: NSView subclass does not call designated initializer

2011-08-22 Thread Graham Cox
On 22/08/2011, at 10:57 PM, allan greenier wrote: > This is for an iPhone app.I've made a subclass (named Box) of NSView, ??? iPhone has no class called NSView... > Xcode 4.1 made it with a designated initializer for me to fill out. > - (id)initWithFrame:(CGRect)frame > I've dropped a view int

Re: NSView subclass does not call designated initializer

2011-08-22 Thread Roland King
it's calling initWithCoder: read the NIB Object Life Cycle section in the documentation "In iOS, any object that conforms to the NSCoding protocol is initialized using the initWithCoder: method. This includes all subclasses of UIView and UIViewController whether they are part of the default Int

Re: Exception getting shared font panel

2011-08-22 Thread Gideon King
Thanks, Peter. How did you work out which was corrupted? Was it just a matter of elimination? Binary search? On 22/08/2011, at 11:02 PM, P Teeson wrote: > > Does your user have a corrupted Font? > I had something somewhat similar with FreeSans.ttf and LibreOffice. > Took a while to track down w

Re: printDocument: hangs on Lion?

2011-08-22 Thread Graham Cox
Further info, if I take out +autosavesInPlace (was overridden to return YES), it works fine. This suggests there's more to supporting this new-fangled document model to allow printing to work. Any documentation spells this out? Working in Xcode 4, the documentation viewer is so incredibly poor

Re: printDocument: hangs on Lion?

2011-08-22 Thread davelist
I'm not saying it's a bug in your code, but I have +autosavesInPlace set to return YES in my app and I can't reproduce your problem when printing. I know this doesn't solve your problem, but figured it might be worth knowing that not everyone is seeing this problem. Dave On Aug 22, 2011, at

Re: printDocument: hangs on Lion?

2011-08-22 Thread Kevin Perry
Graham, This can happen if there is a previous call to -performActivityWithSynchronousWaiting:usingBlock: and the block never calls the completion handler. If you use that method anywhere, please make sure the completion handler always gets called. If you don't use the method directly, other m

Re: Exception getting shared font panel

2011-08-22 Thread P Teeson
Well I first looked in ~/Library/Fonts which is empty by default. That was when I discovered the FreeSans.ttf but had no recall as to how it got there. Removing it did the trick for my case. YMMV. On 2011-08-22, at 9:25 AM, Gideon King wrote: > Thanks, Peter. How did you work out which was corru

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-22 Thread Bing Li
Dear Wayne, Thanks so much for your email! I don't understand your opinions well. Jens said 3G did not allow incoming connections. So I think P2P does not work in such an environment. I have to try to use app notifications. The major reason I use P2P is to get a lower load on the server and us

Re: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-22 Thread Jens Alfke
On Aug 21, 2011, at 11:19 PM, Bing Li wrote: > On 3G, the iPad must always establish the connection and send requests before > getting data from other nodes, right? That is not my expectation. I will try > app notifications instead. If you use iOS’s notification service, you’re not fully P2P a

Overriding Lion's SaveState

2011-08-22 Thread Matthew Weinstein
Dear CocoaDevs, I'm working on updating my app for lion. For the time being, just to get users able to proceed I need to disable Lion's restore savedstate default. I don't want Lion opening any windows (other than the ones I open programmatically) when a user starts the program. I can't find how

Re: Overriding Lion's SaveState

2011-08-22 Thread Indragie Karunaratne
Uncheck the "Restorable" checkbox of all your windows in Interface Builder or call setRestorable:NO on them. On 2011-08-22, at 1:39 PM, Matthew Weinstein wrote: > Dear CocoaDevs, > I'm working on updating my app for lion. For the time being, just to get > users able to proceed I need to disable

Re: Crash using NSOpenPanel TFSVolumeInfo::GetSyncGCDQueue

2011-08-22 Thread Mike Abdullah
We've seen a few similar crashes in our non-GC app too. Sent from my iPad On 22 Aug 2011, at 09:30 AM, "jonat...@mugginsoft.com" wrote: > From time to time I experience the following crash when displaying > NSOpenPanel on Lion in a GC app. > It has prior form according to > http://www.cocoab

Autosaving, Revert/Duplicate, and -writeSafelyToURL:

2011-08-22 Thread Kyle Sluder
Hi all, No formal documentation yet exists for the new NSDocument autosave path. Well, really paths, because "autosave" actually refers to two related but different things: - The old-style periodic autosaving that is done to protect against crashing. - The new behavior where the document is saved

-drawRect when running a print operation

2011-08-22 Thread koko
The rect I get in drawRect is not the same size as the rect I return in rectForPage ... is this expected behavior? -koko___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Not Receiving Distributed Notifications Unless in Focus

2011-08-22 Thread Ian was here
I have a suite of apps that send distributed notifications to each other. I have two apps in particular: 1) App A will launch app B. 2) App B will then send a distributed notification to app A when it has finished with its initialization. 3) App A can then proceed. In Mac OS X 10.4, 10.5, and

Re: Not Receiving Distributed Notifications Unless in Focus

2011-08-22 Thread Ken Thomases
On Aug 22, 2011, at 5:05 PM, Ian was here wrote: > I have a suite of apps that send distributed notifications to each other. I > have two apps in particular: > > 1) App A will launch app B. > 2) App B will then send a distributed notification to app A when it has > finished with its initializat

Re: printDocument: hangs on Lion?

2011-08-22 Thread Graham Cox
Hi Kevin, I'm definitely not calling it anywhere explicitly, but possibly by calling some other method. My use of -runModalPrintOperation:delegate:didRunSelector:contextInfo: was passing nil for both delegate and the didRunSelector, which I thought might be the problem, but replacing those wit

Re: printDocument: hangs on Lion?

2011-08-22 Thread Jerry Krinock
On 2011 Aug 22, Graham Cox wrote: > new-fangled document model … Any documentation spells this out? At this point, besides the drawing the Kyle Sluder posted to this list a few hours ago, the best "document" is the comments in NSDocument.h in the 10.7 SDK. It might answer your next question…

Re: printDocument: hangs on Lion?

2011-08-22 Thread Graham Cox
On 23/08/2011, at 11:43 AM, Jerry Krinock wrote: > "Here is a list of NSDocument methods whose default implementations invoke > this method because they might present sheets, either to ask the user what to > do as they begin their work or because they may fail and present errors to > user: > -

Re: printDocument: hangs on Lion?

2011-08-22 Thread Graham Cox
I set a breakpoint on -[NSDocument performActivityWithSynchronousWaiting:usingBlock:] It is hit exactly twice in my test case, both in the same call stack, which is: #0 0x7fff881b2464 in -[NSDocument performActivityWithSynchronousWaiting:usingBlock:] () #1 0x7fff881a2518 in -

[SOLVED] Re: printDocument: hangs on Lion?

2011-08-22 Thread Graham Cox
On 23/08/2011, at 1:00 PM, Graham Cox wrote: > - (void) printShowingPrintPanel:(BOOL) flag Ok, I found the problem. This method has been deprecated since 10.4. I've replaced it with -printOperationWithSettings:error: and all is well. Though deprecated, there seems to still be a compatibilit

Is there any API to detect the WIFI/CELL Signal Strength

2011-08-22 Thread Sasikumar JP
Hi, I am working on a streaming application. I want to notify the user, if the data network quality is not good. Is there any API to detect the WIFI/CELL Signal strength. I could not find any resource from Google other than Field Test utility to display the cell signal strength. Any help is hi

Re: Is there any API to detect the WIFI/CELL Signal Strength

2011-08-22 Thread Kyle Sluder
On Aug 22, 2011, at 9:26 PM, Sasikumar JP wrote: > Hi, > I am working on a streaming application. I want to notify the user, > if the data network quality is not good. You should be basing this assessment on the connection to your streaming server, not the general Wi-Fi or 3G signal strength.

command line tool called from php

2011-08-22 Thread Rainer Standke
Hello, I have a command line tool that uses foundation. When I run that tool from the command line it does what I need it to do. This includes sending an NSNotification to a Cocoa application via the NSDistributedNotificationCenter. When I call the same command line tool from a php page served