Re: Does anyone else dislike Xcode 4?
For those of you groaning about the switch to the much requested single window UI (that actually was almost possible in Xcode 3) I just have to ask; why do you need so many windows open at the same time with various files? Is it because you are coding ADD style (write a few lines in this file then jump to another one then a third), or are you perhaps coupling you classes so tightly together that that are really just one huge class with numerous files. :) Because if I'm looking at FooView I'm also looking at FooViewController and FooModel, and related class BarView, BarViewController, and BarModel, or maybe refactoring several sibling classes so that their common code is in their parent, which requires seeing all the related methods at once to tell what's common and what's not. I've been doing OOP longer than NSAnything has been around. Any non-trivial OOP system has lots of interconnected parts; being able to see all those parts is essential. (BTW, I'm not bitching about XCode4 anymore. I'm just not using it.) ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Well, I wouldn’t want to throw more oil on the fire, as the French saying goes, but, in my opinion, this looks like tycoons arguing about the color of their Ferraris or which Bordeaux grand cru (or whatever else). I used to be a Unix (NetBSD) developer, coding with vi(m), and managing projects with the BSD make, and so forth (I also used Qt3/4-Designer) – I still do that when fixing code for the ports I’m responsible of. I can insure you whatever flaws there may be in this or that version of Xcode, it is still a great coding environment: no need to keep track of methods or compilation errors on a separate sheet of paper, autocompletion is great, etc. And IB is also way ahead QT-Designer, for example. I understand ease of development is important; but what count most (IMO, always) is what the users think about your product. And Xcode UI has definitely no impact on this: Compiler and OS do. Even with the most beautiful and useful UI, a perfect code going through a compiler that insert thousand of useless assembler lines and a buggy OS is going to lead to a disastrous experience. With LLVM, Apple engineers have accomplished an amazing job of modernizing GCC and MacOS is a great OS to work on. That alone should make everybody happy. Vincent___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Le 25 juil. 2011 à 09:47, vincent habchi a écrit : Well, I wouldn’t want to throw more oil on the fire, as the French saying goes, but, in my opinion, this looks like tycoons arguing about the color of their Ferraris or which Bordeaux grand cru (or whatever else). Xcode is a tool we have to use all the day. This is not just a luxury product we don't need at all. I used to be a Unix (NetBSD) developer, coding with vi(m), and managing projects with the BSD make, and so forth (I also used Qt3/4-Designer) – I still do that when fixing code for the ports I’m responsible of. I can insure you whatever flaws there may be in this or that version of Xcode, it is still a great coding environment: no need to keep track of methods or compilation errors on a separate sheet of paper, autocompletion is great, etc. And IB is also way ahead QT-Designer, for example. I understand ease of development is important; but what count most (IMO, always) is what the users think about your product. And Xcode UI has definitely no impact on this: Compiler and OS do. Even with the most beautiful and useful UI, a perfect code going through a compiler that insert thousand of useless assembler lines and a buggy OS is going to lead to a disastrous experience. With LLVM, Apple engineers have accomplished an amazing job of modernizing GCC and MacOS is a great OS to work on. That alone should make everybody happy. Nice to know you don't care about how much time it take to code this great product you're talking about. When I spend much of my time fighting with the IDE, I can't be happy though. And FWIW, I don't care about which compiler version is sold with Xcode 4, it always lack behind my nightly build of clang I'm using in Xocde 3 for some time now. -- Jean-Daniel ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Le 24 juil. 2011 à 23:28, Ed Wynne a écrit : On Jul 24, 2011, at 3:46 PM, Gary L. Wade wrote: As I mentioned before, everyone should go to bugreporter.apple.com and enter bugs against this horrible MS Windows method of UI that prevents usable viewing of multiple files that has been added to Xcode. How do you stop the cycle if that works? People who hate horrible MS Windows UIs file bugs against XC4, making XC5 have a normal Mac UI. Then people who like horrible MS Windows UIs will file bug against XC5, causing everything to revert back to its current state for XC6. Clearly this must be what happened with XC3, getting us to where we are now. Fill a report to ask a preference to choose between single Window UI and multiple windows UI. -- Jean-Daniel ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Salut Jean-Daniel, (It is always fun talking to other French speaking people in English :)) Xcode is a tool we have to use all the day. This is not just a luxury product we don't need at all. I disagree. You can still code any Apple application with vi, make, clang, dyld, ar, whatever else BSD tool and build your interface programmatically. That's we've being doing for years with the Xlib or Motif. And FWIW, I don't care about which compiler version is sold with Xcode 4, it always lack behind my nightly build of clang I'm using in Xocde 3 for some time now. So we agree there: clang is a great compiler! Bonne journée ! ;) Vincent___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTask oddity with getting stdout
On 25/7/11 3:01 PM, Stephen J. Butler stephen.but...@gmail.com wrote: I wonder if they've changed how the readInBackgroundAndNotify works. Yes, they have. I logged a bug on it, and was told that the way it worked in 10.6 was wrong -- whereas it used not to send a notification until there was something to read, it now returns one immediately regardless. Whether that's the problem here, I don't know. -- Shane Stanley sstan...@myriad-com.com.au 'AppleScriptObjC Explored' www.macosxautomation.com/applescript/apps/ ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Even if I would agree that the discussion is at the wrong list... :-)) I also dislike XCode 4 - but I do not see the problem. I am using XCode 3 to develop my stuff - and XCode 4 to e.g. transfer it to the App Store. Just install XCode 4 at a unique developer folder (e.g. developer4). Then install XCode 3 also at a unique developer folder (e.g. developer3). This way you can use both. The only problem I see is the NIB files which are not compatible with XCode 3 if created/modified by XCode 4. If working with XCode 4 I create/modify the NIBs therefor with the InterfaceBuilder of XCode 3. By the way: XCode seems to remove all older versions of the iOS kits if installing a newer XCode. It took me hours to download/install different versions of XCode, copy the iOS kit (e.g. iOS 3.2, iOS 4.1) to a different folder, installing the next version - and at the end putting all together. (As far as I know I need the older iOS kits to build test iOS apps with the Simulator and then to build and send to people with older devices.) ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Problem in coming out of modal run loop
Hi,I am opening a NSPanel as a modal window using runModalForWindow method.The problem is when i close the panel the modal run loop is not stopped. I have tried all the possible ways ( stopModalWithCode, stopModal, abortModal). But nothing works. I have number of modal windows in my applications but all other windows work fine. Infact I am opening this NSPanel from inside one of the modal window (is this a problem ?). Please suggest a solution...Thanks and RegardsAbhijeetDear cocoadev ! Get Yourself a cool, short @in.com Email ID now! ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Lion NSSpeechSynthesizer leak?
Code that did not leak when built in Snow Leopard now leaks an NSSpeechSynthesizer object when built in Lion. It is a standard bit of code that allocs and inits an NSSpeechSynthesizer object in a view subclass -init method (or in -awakeFromNib if I move it there), and releases it in -dealloc. I can't stop the leak no matter what different techniques to instantiate it I try. Known bug? Worth a radar? -- Bill Cheeseman - b...@cheeseman.name ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Lion NSSpeechSynthesizer leak?
I say radar everything. On Mon, Jul 25, 2011 at 8:12 AM, Bill Cheeseman wjcheese...@gmail.comwrote: Code that did not leak when built in Snow Leopard now leaks an NSSpeechSynthesizer object when built in Lion. It is a standard bit of code that allocs and inits an NSSpeechSynthesizer object in a view subclass -init method (or in -awakeFromNib if I move it there), and releases it in -dealloc. I can't stop the leak no matter what different techniques to instantiate it I try. Known bug? Worth a radar? -- Bill Cheeseman - b...@cheeseman.name ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/edolecki%40gmail.com This email sent to edole...@gmail.com ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: EXC_BAD_ACCESS in NSApplicationMain
That certainly made a difference. It's choking on a nib #0 0x97876d54 in objc_msgSend () #1 0x96e6a960 in CFHash () #2 0x96e709c0 in __CFSetStandardHashKey () #3 0x96e740c2 in CFBasicHashAddValue () #4 0x96e8b2d4 in CFSetAddValue () #5 0x96ee3395 in -[__NSCFSet addObject:] () #6 0x94a595b1 in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] () #7 0x94a4f679 in loadNib () #8 0x94a4ea60 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] () #9 0x94a4e96a in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] () #10 0x94a4e89e in +[NSBundle(NSNibLoading) loadNibNamed:owner:] () #11 0x94cd58f3 in NSApplicationMain () #12 0x00010d64 in main at /Users/lobster/Desktop/Roboplasm/main.m:14 Off to ponder that. ja On Jul 24, 2011, at 8:04 PM, Quincey Morris wrote: On Jul 24, 2011, at 15:50, Ayers, Joseph wrote: In XCode 4.1. and Lion,, compiling for OS X 10.6, My application is crashing in main.m. Specifically it exhibits EXC_BAD_ACCESS errors in main.m, NSApplicationMain and obj_msgSend on disassembly. I've got symbolic breakpoints at: “objc_exception_throw” and “[NSException raise]“. Any idea how to get beyond this? Your application didn't really crash in NSApplicationMain, but Xcode has collapsed the backtrace so that you can't see the place it stopped. This is a usability issue in Xcode 4. With the Debugger tab of the Navigator pane visible, look at the level of detail slider at the bottom of the pane, and drag it all the way to right-hand end. ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTask oddity with getting stdout
On Jul 24, 2011, at 11:01 PM, Stephen J. Butler wrote: That is, abandon processPipeClose and let each pipe handle its own close in the notification when you're sure all of its read notifications have actually been delivered. As you've presented it, processPipeClose isn't needed. Your theory makes sense to me, and I think for now I'll assume it's the explanation for the behavior. In the real code there's things I need to do after receipt of complete output from both pipes; I just stripped that out of processPipeClose to make this easier to read. However, I can still incorporate your suggestion, and just do the after everything processing when the second of curStdOut curStdErr go to nil. If I weren't feeling lazy this morning, I would dig back through version control. I think the code some time ago was more similar to your suggestion, but loaded up with some unnecessary complications, and this race condition is a result of a simplification attempt which I did not get quite right. Thanks a lot. This was, IMO, not a trivial question ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Lion NSSpeechSynthesizer leak?
After the official release of Lion, I got a request to see if another long-standing speech synthesizer memory leak was fixed, -objectForProperty:NSSpeechPhonemeSymbolsProperty. I haven't had the chance yet to check it yet, but maybe they fixed that one by leaking yours? Don't even get me started on their non-standard approach of retaining its delegate! - Gary L. Wade (Sent from my iPhone) On Jul 25, 2011, at 5:12 AM, Bill Cheeseman wjcheese...@gmail.com wrote: Code that did not leak when built in Snow Leopard now leaks an NSSpeechSynthesizer object when built in Lion. It is a standard bit of code that allocs and inits an NSSpeechSynthesizer object in a view subclass -init method (or in -awakeFromNib if I move it there), and releases it in -dealloc. I can't stop the leak no matter what different techniques to instantiate it I try. Known bug? Worth a radar? -- Bill Cheeseman - b...@cheeseman.name ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
On Jul 24, 2011, at 11:38 PM, Michael Swan wrote: Is it because you are coding ADD style (write a few lines in this file then jump to another one then a third), or are you perhaps coupling you classes so tightly together that that are really just one huge class with numerous files. Neither. Some of us work on more complex projects than others. That said, it looks like 4.1/4.2 address my complaints quite well. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTask oddity with getting stdout
On Jul 25, 2011, at 3:40 AM, Shane Stanley wrote: I wonder if they've changed how the readInBackgroundAndNotify works. Yes, they have. I logged a bug on it, and was told that the way it worked in 10.6 was wrong -- whereas it used not to send a notification until there was something to read, it now returns one immediately regardless. Whether that's the problem here, I don't know. That's absolutely demented. If it sends a notification immediately, with or without data, then you're never really using it to read in the background, you're almost just spinning in a busy loop, getting a probably empty NSData, and calling readInBackgroundAndNotify again, as fast as the runloop can deliver the notifications. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
I don't know how this thread was started but, yeah, I don't like the Xcode 4. The reason is : - Requires too much scree real-estate Also, waste of screen real-estate - Different shortcut from those of Xcode 3 - Useless tool bar - Not flexible assistant editor Simple split view is better - Still lots of bugs Annoying bugs : [Bug 1] I reported this yesterday, but try to put an NSPathControl on an instance of NSWindow ( resource editor ) Make sure if your project is to be built for 10.6, for example. It will throw an error message saying that NSPathControl and NSPathControl cell are not available in Mac OS X prior to 10.5 [Bug 2] Prints out many Warning message saying that this and that property of widgets are not supported in Mac OS X prior to 10.5. Again, just like the Bug 1 case, the project is not built for pre-10.5 [Bug 3] Lots of memory usage - Just open Xcode 4.2, for example. Don't use Xcode 4 and just leave it as it is. - It will start to use lots of memory ( thus eats more HDD space due to increase of VM size or swap files. ) ( Is this because Xcode provide more features? I don't think so. ) [Bug 4] Error/Warning of previous built remains there sometimes. So, although it says Successfully built, it also shows red/yellow error/warning message. = this confuses a lot. [Enhancement Required] Use of contextual menu more wisely : to reveal the actual name of each project settings, contextual menu works better. I didn't understand where the feature was gone, and found under Editor menu. ( Why is it under Editor menu? ) Instead of using keyboard combination, it is better to use contextual menu to open a file into a new window/tab etc. Providing keyboard combination will work for some people, but also providing contextual menu for them will make things a lot easier How the search result is laid out Search result are source lines. To put those on the left most pane is not good idea. It is better to be laid out horizontally rather than vertically. Confined panes of debuggers Even Visual Studio 2010 allows users to detach panes to utilize multiple window or bigger window more well. I pointed the weak point of previous Visual Studio was MainFrame confined panes and children windows. Compared to that Xcode 3 was much better. I know how the initial and Xcode 2 was bad about user configuration. Even Project Builder was very confusing. However, Xcode 3 was very nice. Probably MS people acknowledged their shortcomings. But Xcode 4 went to the past instead of the future. Even though you can make one window filled with debug panes only, it is inconvenient to make existing window that way and open another window for source code, for example. It is much better to detach panes from existing one, if they really want to push one window approach. However, my point is why they give up already working, better approach delivered by Xcode 3? To people who uses All-in-one configuration only, they would think that Xcode 4 is same to Xcode 3!. But.. no. I have used its compact layout more, because it was more flexible especially when I needed to work with multiple projects. To name a few I have liked Xcode ( pre Xcode 4 ). I'm a long time Windows programmer while at the same time a Mac programmer. So, I have enough knowledge to compare the both. I really want Apple to make Xcode 4 make better. However, I also notice that there are many people who just like Xcode 4 because Apple made it. I don't like that kind of attitude. My 2 cents... JongAm Park ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Well, one thing I just discovered in Xcode 4 and is already annoying me highly is that the app somehow uses CoreAnimation so that now, even though I'm running on battery, it forces the OS to use the Radeon video chipset instead of the integrated Intel's one, which is less power hungry. That is really not good as I go from having 7+ hours (theoretically) to 4+ hours. I'm going to fill a bug as I don't see any reason why Xcode needs to use fancy animations. That really defeats the purpose of having 2 video chipsets. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Lion document opening: -[__NSArrayM insertObject:atIndex:]: object cannot be nil
We have an agent (UIElement) process, using GC, that can open a custom document type. Other than it being an agent, there’s nothing particularly special going on. On Lion, when one of these documents are opened, the window appears, but then the application promptly has an uncaught exception and crashes. The difficult matter here is that there’s no code of ours in the stack trace involving the exception, it just looks like internal NSDocumentController machinery, and everything works fine on 10.6. So while as a first pass this looks like it could be a Lion bug, I thought I’d run it past the hive mind here to see if anybody has seen any issues like it themselves and have any insight into a workaround or anything that we could be doing wrong to be causing it. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' *** First throw call stack: ( 0 CoreFoundation 0x7fff8882f986 __exceptionPreprocess + 198 1 libobjc.A.dylib0x7fff8a38ad5e objc_exception_throw + 43 2 CoreFoundation 0x7fff887d6818 -[__NSArrayM insertObject:atIndex:] + 296 3 AppKit 0x7fff8d47d242 __-[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:]_block_invoke_2 + 1089 4 AppKit 0x7fff8d581b85 __-[NSDocumentController _openDocumentsWithContentsOfURLs:presentErrors:completionHandler:]_block_invoke_2 + 50 5 Foundation 0x7fff88add581 -[NSBlockOperation main] + 116 6 Foundation 0x7fff88aa40b0 -[__NSOperationInternal start] + 705 7 Foundation 0x7fff88ab73d2 NSOQSchedule_block_invoke_2 + 124 8 libdispatch.dylib 0x7fff8ca6d90a _dispatch_call_block_and_release + 18 9 libdispatch.dylib 0x7fff8ca6f77a _dispatch_main_queue_callback_4CF + 308 10 CoreFoundation 0x7fff887c4c0c __CFRunLoopRun + 1724 11 CoreFoundation 0x7fff887c4216 CFRunLoopRunSpecific + 230 12 HIToolbox 0x7fff92b0a4ff RunCurrentEventLoopInMode + 277 13 HIToolbox 0x7fff92b11c21 ReceiveNextEventCommon + 355 14 HIToolbox 0x7fff92b11aae BlockUntilNextEventMatchingListInMode + 62 15 AppKit 0x7fff8d1c1191 _DPSNextEvent + 659 16 AppKit 0x7fff8d1c0a95 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 17 AppKit 0x7fff8d1bd3d6 -[NSApplication run] + 463 18 AppKit 0x7fff8d43b52a NSApplicationMain + 867 19 Synk Agent 0x000120ec Synk Agent + 8428 20 ???0x0001 0x0 + 1 ) Any insight or info would be appreciated. Best, Benjamin Rister___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
can't build iPhone apps, certificate error
Hi Guys, Im starting an iPhone app here, but I just can't build it... XCode clains: CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.3' But I don't have one yeth... I was able to develop iPhone apps before without any code signing... It as configured before to use 'iPhone Developer' certificate, but when I try with this one I get: Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain Any ideia on how to make it work again? I'm on Lion, with the most recent XCode (latest official, not beta/preview release). --- Wilker Lúcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600 ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Oh... BTW who started this thread in cocoa-dev mailing list? It should be go to xcode-users! ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
That was brought up several times before and totally ignored. Dave On Jul 25, 2011, at 11:30 AM, JongAm Park wrote: Oh... BTW who started this thread in cocoa-dev mailing list? It should be go to xcode-users! ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com This email sent to davedel...@me.com ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
iOS4: glReadPixels() to CMSampleBufferRef for video?
Hello, all ... While all of this discussion on Xcode 4 is interesting (please, Apple, make multiple-window development work again), i've an issue that i'm hoping someone could help with. I'm recording audio and video using AVFoundation, and i'm applying a GPU shader to the incoming video frames for effects. The problem is that after I get the pixels from the GPU via glReadPixels(), i'm kinda stuck as to how to make a CMSampleBuffer out of them so I can write it with an AVAssetWriter. The examples i've seen are confusing to me as they only seem to be concerned with video, when i'm recording video _and_ audio (though i'm not doing any processing to the audio). Could someone post some example code that illustrates how to get pixels from the GPU (i'm assuming glReadPixels() is the best way to do this) and create a CMSampeBuffer with those pixels? I'd really appreciate it :-) Regards, John ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: can't build iPhone apps, certificate error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/25/11 11:25 AM, Wilker wrote: Hi Guys, Im starting an iPhone app here, but I just can't build it... XCode clains: CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.3' But I don't have one yeth... I was able to develop iPhone apps before without any code signing... It as configured before to use 'iPhone Developer' certificate, but when I try with this one I get: Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain Any ideia on how to make it work again? I'm on Lion, with the most recent XCode (latest official, not beta/preview release). Full disclosure: I am not yet on Lion/Xcode 4 (perhaps thankfully, in light of certain other ongoing conversations on the list). That said, AFAIK you should be able to build without code signing _for the simulator_, so I guess I would start by verifying that your deployment target (or whatever scheme-based terminology Xcode 4 is using) is set to the simulator, not a device (or App Store). The Code Sign error you report means that Xcode (or, more likely, the codesign utility it calls during the build process) was unable to automatically select a certificate and private key from your keychain, which would make sense if you haven't set them up yet. Try configuring your build settings (or whatever the corresponding pane in Xcode 4 is) to not perform code signing period, since you shouldn't need to for simulator. (Btw, you probably should just shell out the $99 and get your signing certificate... not only will you want to test your app on an actual device sooner rather than later, but you will also get access to the relevant dev forums and, more importantly, WWDC videos, if you didn't otherwise have access to them.) - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOLblOaOlrz5+0JdURAl3AAJ96Z6crAbXABx4RkMeOLNpi0ywX3wCfRJ3U GyQ3vN/DyGRUCgL74JulBQ4= =BBiA -END PGP SIGNATURE- ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Le 25 juil. 2011 à 19:42, Nick Zitzmann a écrit : This is my main grievance with Xcode 4 as well, and really, it's the second time this has happened. The original Project Builder had an all-in-one view, and developers complained, so they added a CodeWarrior-like condensed view to Project Builder 2, only to take it out of Xcode 1. Developers complained again, and the condensed view came back in Xcode 2. Now it's gone again. Maybe if enough people complain about it, it'll come back in Xcode 5, I don't know… Every other major IDE uses an all-in-one view. And that why I prefer Xcode 3 over all other IDE I have to use (ItelliJ IDEA, Visual Studio, Eclipse, …) ;-) -- Jean-Daniel ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Fastest high-quality thumbnail display
What is the fastest way to generate and display a thumbnail from a digital camera file? In the past I used NSImage -- however the quality (with JPEG files) leaves something to be desired. Now I am using CIImage with Lanczos scale transform -- quality is very good but it is slow (particularly with raw files). Should I be using the thumbnail capability of Image I/O? Will it have as good a quality as CIImage, but be faster? I am comparing the speed of my app (running in Xcode) with the speed of Preview. Preview is much faster ( 2x or 3X). I wonder what they are doing. Of course the fastest way to display a thumbnail is to use the thumbnail in the file (assuming there is one). But that's the problem, there may not be a thumbnail in the file, in which case you need to create one yourself. Thanks for any help, Jim Merkel ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
I agree that this is more appropriate on the Xcode list, but the overwhelming amount of agreement, and the fact that longtime users who know that this is a better fit for the Xcode list, continue to have the discussion anyway, communicates something. I find the actual interface to be a mixed bag; comments on both sides have been a bit hyperbolic at times. What's more of an issue are known bugs that keep things from building and/or running successfully. I feel that this is a large change to have not hammered at that stuff a bit more as far as the actual underpinning not being buggy (again, I'm not getting into the GUI debate), but then again, who hasn't had a deadline. It's too bad that the iCloud, Appstore, and various Lion features seem contingent upon Xcode 4+ builds, because it may have resulted in more time and a more stable development environment. It's noteworthy that many of the people frothing on about how wonderful the Xcode changes are, are either fairly new to Mac development, seemingly don't have commercial or professional output, or work at Apple (a bit of over-generalization here for sure). -gt That was brought up several times before and totally ignored. Dave On Jul 25, 2011, at 11:30 AM, JongAm Park wrote: Oh... BTW who started this thread in cocoa-dev mailing list? It should be go to xcode-users! -- George Toledo gtole...@gmail.com www.georgetoledo.com ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: can't build iPhone apps, certificate error
Thanks Conrad, Anyway, I found the problem here, and here is the solution if anyone else got in same situation: 1. Open Keychain 2. Go to Preferences 3. Go to tab Certificates 4. Set the first two select elements to Off (it was Best Attempt here) 5. Build the than thing :P This iPhone app Im working for my company, so, they will buy a licence, I'm waiting for them, later I will get one for me, just not now ;) --- Wilker Lúcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600 On Mon, Jul 25, 2011 at 3:43 PM, Conrad Shultz con...@synthetiqsolutions.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/25/11 11:25 AM, Wilker wrote: Hi Guys, Im starting an iPhone app here, but I just can't build it... XCode clains: CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.3' But I don't have one yeth... I was able to develop iPhone apps before without any code signing... It as configured before to use 'iPhone Developer' certificate, but when I try with this one I get: Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain Any ideia on how to make it work again? I'm on Lion, with the most recent XCode (latest official, not beta/preview release). Full disclosure: I am not yet on Lion/Xcode 4 (perhaps thankfully, in light of certain other ongoing conversations on the list). That said, AFAIK you should be able to build without code signing _for the simulator_, so I guess I would start by verifying that your deployment target (or whatever scheme-based terminology Xcode 4 is using) is set to the simulator, not a device (or App Store). The Code Sign error you report means that Xcode (or, more likely, the codesign utility it calls during the build process) was unable to automatically select a certificate and private key from your keychain, which would make sense if you haven't set them up yet. Try configuring your build settings (or whatever the corresponding pane in Xcode 4 is) to not perform code signing period, since you shouldn't need to for simulator. (Btw, you probably should just shell out the $99 and get your signing certificate... not only will you want to test your app on an actual device sooner rather than later, but you will also get access to the relevant dev forums and, more importantly, WWDC videos, if you didn't otherwise have access to them.) - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOLblOaOlrz5+0JdURAl3AAJ96Z6crAbXABx4RkMeOLNpi0ywX3wCfRJ3U GyQ3vN/DyGRUCgL74JulBQ4= =BBiA -END PGP SIGNATURE- ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problem in coming out of modal run loop
On Jul 25, 2011, at 6:01 AM, Abhijeet Singh wrote: Hi,I am opening a NSPanel as a modal window using runModalForWindow method.The problem is when i close the panel the modal run loop is not stopped. I have tried all the possible ways ( stopModalWithCode, stopModal, abortModal). But nothing works. I have number of modal windows in my applications but all other windows work fine. Infact I am opening this NSPanel from inside one of the modal window (is this a problem ?). Please suggest a solution...Thanks and RegardsAbhijeetDear cocoadev ! Get Yourself a cool, short @in.com Email ID now! Calling -runModalForWindow within a modal session is usually not what you want--Cocoa doesn't stack modal sessions per se and some behavior may be undefined. That being said, when are you trying to stop the modal session? In -windowShouldClose? That's probably the best case for your implementation, but I would also add that modal windows generally shouldn't have close boxes and should have a cancel/OK button approach instead. Back in the game, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Windows get released on 10.6, leak on 10.7
On Jul 21, 2011, at 6:40 PM, Corbin Dunn wrote: Log the address of your object. Then, break in gdb and do: info gc-roots address Then see what is rooting it. also, try gc-references in it to see what references it, but roots are more important. Thanks, Corbin. I'm trying to understand the output of gc-roots. On 10.6, for the NSDocument subclass (CCMDoc) instance I get this: (gdb) info gc-roots 0x1670a40 Number of roots: 1 Root: 0 Kind: bytes rc: -1847835481 Address: 0x01670a40 On 10.7, I get unpredictable results. Sometimes there is one root, and sometimes there are several. Here is a short output: (gdb) info gc-roots 0x1824f00 Number of roots: 1 Root: 0 Kind: bytes rc: 1 Address: 0x011ee790 Offset: 0x0014 1 Kind: object rc: 0 Address: 0x014a65d0 Class: CCMDocumentWindow ivar: NSWindow.NSResponder 2 Kind: object rc: 0 Address: 0x01b11e60 Class: CCMWindowCtl ivar: _paletteGroups 3 Kind: object rc: 0 Address: 0x014d7950 Class: NSView Offset: 0x002c 4 Kind: object rc: 0 Address: 0x01f28db0 Offset: 0x0014 Class: __NSArrayM 5 Kind: bytes rc: 0 Address: 0x01f28fa0 6 Kind: object rc: 0 Address: 0x018b9490 Class: CCMPaletteGroup ivar: NSView._subviews 7 Kind: object rc: 0 Address: 0x01f1cdb0 Offset: 0x0014 Class: __NSArrayM 8 Kind: bytes rc: 0 Address: 0x01f27d30 Offset: 0x000c 9 Kind: object rc: 0 Address: 0x014cda10 Class: CCMCollapsingView ivar: NSView._subviews 10 Kind: object rc: 0 Address: 0x014c8cb0 Offset: 0x0014 Class: __NSArrayM 11 Kind: bytes rc: 0 Address: 0x014c9b10 Offset: 0x0008 12 Kind: object rc: 0 Address: 0x014c77f0 Class: CCMUnitTextFieldPointsOnly ivar: CCMUnitTextField.NSTextField.NSControl 13 Kind: object rc: 0 Address: 0x014fcb00 Class: NSTextFieldCell ivar: NSActionCell 14 Kind: object rc: 0 Address: 0x014ea670 Offset: 0x004c Class: NSKVONotifying_CCMFormatCtl 15 Kind: object rc: 0 Address: 0x01824f00 Offset: 0x Class: NSKVONotifying_CCMDoc and here is a long one: (gdb) info gc-roots 0x1827500 Number of roots: 5 Root: 0 Kind: bytes rc: 1 Address: 0x0143ec20 Offset: 0x0014 1 Kind: bytes rc: 0 Address: 0x0143ed60 Offset: 0x0014 2 Kind: object rc: 0 Address: 0x018df290 Class: CCMTextViewFooter ivar: CCMTextViewSection.CCMTextView.NSTextView.NSText._ivars 3 Kind: object rc: 0 Address: 0x014b4d70 Offset: 0x0014 Class: NSTextViewIvars 4 Kind: object rc: 0 Address: 0x018e0fc0 Class: CCMLayoutManager Offset: 0x00d8 5 Kind: object rc: 0 Address: 0x01827500 Offset: 0x Class: NSKVONotifying_CCMDoc Root: 0 Kind: bytes rc: 1 Address: 0x01443f20 Offset: 0x0014 1 Kind: bytes rc: 0 Address: 0x01444500 Offset: 0x0014 2 Kind: object rc: 0 Address: 0x018e1d50 Class: CCMTextViewHeader ivar: CCMTextViewSection.CCMTextView.NSTextView.NSText._ivars 3 Kind: object rc: 0 Address: 0x018f3280 Offset: 0x0014 Class: NSTextViewIvars 4 Kind: object rc: 0 Address: 0x018e4730 Class: CCMLayoutManager Offset: 0x00d8 5 Kind: object rc: 0 Address: 0x01827500 Offset: 0x Class: NSKVONotifying_CCMDoc Root: 0 Kind: bytes rc: 1 Address: 0x011ab020 Offset: 0x0014 1 Kind: bytes rc: 0 Address: 0x011ac2c0 Offset: 0x0014 2 Kind: object rc: 0 Address: 0x01879770 Class: CCMTextViewColumn ivar: CCMTextView.NSTextView.NSText._ivars 3 Kind: object rc: 0 Address: 0x01853510 Offset: 0x0014 Class: NSTextViewIvars 4 Kind: object rc: 0 Address: 0x018d7050 Class: CCMColumnLayoutManager ivar: CCMLayoutManager 5 Kind: object rc: 0 Address: 0x01827500 Offset: 0x Class: NSKVONotifying_CCMDoc Root: 0 Kind: bytes rc: 1 Address: 0x01817670 Offset: 0x0014 1 Kind: object rc: 0 Address: 0x0182a9a0 Class: CCMDocumentWindow ivar: NSWindow.NSResponder 2 Kind: object rc: 0 Address: 0x018321b0 Class: CCMWindowCtl ivar: _paletteGroups 3 Kind: object rc: 0 Address: 0x01816fb0 Class: NSView Offset: 0x002c 4 Kind: object rc: 0 Address: 0x0183ad60 Offset: 0x0014 Class: __NSArrayM 5 Kind: bytes rc: 0 Address: 0x018760d0 6 Kind: object rc: 0 Address: 0x01853a00 Class: CCMPaletteGroup ivar: NSView._subviews 7 Kind: object rc: 0 Address: 0x014f6100 Offset: 0x0014 Class: __NSArrayM 8 Kind: bytes rc: 0 Address: 0x01893110 Offset: 0x000c 9 Kind: object rc: 0 Address: 0x014db880 Class: CCMCollapsingView ivar: NSView._subviews 10 Kind: object rc: 0 Address: 0x014b1cd0 Offset: 0x0014 Class: __NSArrayM 11 Kind: bytes rc: 0 Address: 0x014b23c0 Offset: 0x0008 12 Kind: object rc: 0 Address: 0x01827330 Class: CCMUnitTextFieldPointsOnly ivar: CCMUnitTextField.NSTextField.NSControl 13
How do I update re-sort the fetch results associated with an NSFetchedResultsController instance?
I have an fetched-results-controller (FRC) that returns entities that are sorted by name. After I get Core Location callbacks up and running, I need to update the sort order of the same result set but by distance (another attribute/property of the same entity). It just so happens that distance is an transient property and does not persist. Thus, when I issue a fetch request with a sort descriptor for distance, I get an invalid argument exception. How can I effectively sort by distance, based on updates from Core Location while continuing to use the FRC and transient properties? I realize I could make distance not be transient but I'm hoping to avoid that. Perhaps there is another way to update the sort order for a result set that has aready been fetched and is being managed by an FRC? -SMJ ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Fastest high-quality thumbnail display
On 25 Jul 2011, at 20:04, James Merkel wrote: What is the fastest way to generate and display a thumbnail from a digital camera file? In the past I used NSImage -- however the quality (with JPEG files) leaves something to be desired. Now I am using CIImage with Lanczos scale transform -- quality is very good but it is slow (particularly with raw files). Lanczos is high quality and slow, no way around that. Should I be using the thumbnail capability of Image I/O? Will it have as good a quality as CIImage, but be faster? Yes, you should be using it. It won't be as high quality as CIImage though. I am comparing the speed of my app (running in Xcode) with the speed of Preview. Preview is much faster ( 2x or 3X). I wonder what they are doing. Of course the fastest way to display a thumbnail is to use the thumbnail in the file (assuming there is one). But that's the problem, there may not be a thumbnail in the file, in which case you need to create one yourself. That's exactly what ImageIO offers you; the ability to use embedded thumbnail if present. ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
I had the same feeling at first, it seems that the 4.0 and then 4.1 updates were rush jobs…. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Jul 25, 2011, at 12:45, George Toledo wrote: I agree that this is more appropriate on the Xcode list, but the overwhelming amount of agreement, and the fact that longtime users who know that this is a better fit for the Xcode list, continue to have the discussion anyway, communicates something. I find the actual interface to be a mixed bag; comments on both sides have been a bit hyperbolic at times. What's more of an issue are known bugs that keep things from building and/or running successfully. I feel that this is a large change to have not hammered at that stuff a bit more as far as the actual underpinning not being buggy (again, I'm not getting into the GUI debate), but then again, who hasn't had a deadline. It's too bad that the iCloud, Appstore, and various Lion features seem contingent upon Xcode 4+ builds, because it may have resulted in more time and a more stable development environment. It's noteworthy that many of the people frothing on about how wonderful the Xcode changes are, are either fairly new to Mac development, seemingly don't have commercial or professional output, or work at Apple (a bit of over-generalization here for sure). ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Disable Lion's window restoration?
Hi, Is there an application-global way of disabling window restoration? All I can find is NSWindow's - (BOOL)isRestorable method (and it's relatives). I was hoping for something more global, like a - (BOOL)shouldRestoreWindows method in the application delegate protocol or the NSDocumentController class or somewhere. Thanks Gerd ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Fastest high-quality thumbnail display
Well, I see I have a huge memory leak in CIImage. However, I don't see where my code is in error. Also, according to Instruments Object Allocation, ImageIO is holding this memory. So I guess Core Image calls IImageIO. I'll have to look at this in more detail. Jim Merkel On Jul 25, 2011, at 3:58 PM, Mike Abdullah wrote: On 25 Jul 2011, at 20:04, James Merkel wrote: What is the fastest way to generate and display a thumbnail from a digital camera file? In the past I used NSImage -- however the quality (with JPEG files) leaves something to be desired. Now I am using CIImage with Lanczos scale transform -- quality is very good but it is slow (particularly with raw files). Lanczos is high quality and slow, no way around that. Should I be using the thumbnail capability of Image I/O? Will it have as good a quality as CIImage, but be faster? Yes, you should be using it. It won't be as high quality as CIImage though. I am comparing the speed of my app (running in Xcode) with the speed of Preview. Preview is much faster ( 2x or 3X). I wonder what they are doing. Of course the fastest way to display a thumbnail is to use the thumbnail in the file (assuming there is one). But that's the problem, there may not be a thumbnail in the file, in which case you need to create one yourself. That's exactly what ImageIO offers you; the ability to use embedded thumbnail if present. ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
UITextField Questions
Hello, I have a question about UITextField - How might I restrict/correct user input that is numerical? For instance, I would like the input to only be numbers, and to have an upper bounds. If a user inputs any non-numerical input, I want to send a message to the UITextField to set itself back to a default value. I'd also like to prevent users from putting a gazillion zeros in for some ridiculous numbers. Maybe cap it at 10^7. Any hints? Thanks in advance! Brooke ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UITextField Questions
Take a look at UITextInputTraits to specify a numeric keyboard. (IIRC this can be done in IB too.) Take a look at UITextFieldDelegate's textFieldShouldEndEditing: method to perform validation of input. I should also point out that often a text field is not the most appropriate control for restricted numeric input. If you have a reasonably small finite set of input values, consider UIPickerView. If you have a finite range for input, consider UISlider. (Sent from my iPhone.) -- Conrad Shultz On Jul 25, 2011, at 18:09, Brooke Gravitt bro...@gravitt.org wrote: Hello, I have a question about UITextField - How might I restrict/correct user input that is numerical? For instance, I would like the input to only be numbers, and to have an upper bounds. If a user inputs any non-numerical input, I want to send a message to the UITextField to set itself back to a default value. I'd also like to prevent users from putting a gazillion zeros in for some ridiculous numbers. Maybe cap it at 10^7. Any hints? Thanks in advance! Brooke ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/conrad%40synthetiqsolutions.com This email sent to con...@synthetiqsolutions.com ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UITextField Questions
On Mon, Jul 25, 2011 at 9:19 PM, Conrad Shultz con...@synthetiqsolutions.com wrote: Take a look at UITextInputTraits to specify a numeric keyboard. (IIRC this can be done in IB too.) Take a look at UITextFieldDelegate's textFieldShouldEndEditing: method to perform validation of input. I should also point out that often a text field is not the most appropriate control for restricted numeric input. If you have a reasonably small finite set of input values, consider UIPickerView. If you have a finite range for input, consider UISlider. (Sent from my iPhone.) -- Conrad Shultz Conrad, Thanks for the response! The fields in question are for setting a price and a percentage, respectively. They don't seem to fit into either category. I'll take a look at the UITextInputTraits the delegate's textFieldShouldEndEditing method as well! Thanks! Brooke ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UITextField Questions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/25/11 6:31 PM, Brooke Gravitt wrote: Thanks for the response! The fields in question are for setting a price and a percentage, respectively. They don't seem to fit into either category. I'll take a look at the UITextInputTraits the delegate's textFieldShouldEndEditing method as well! Glad to be of help. The design of your app is of course your own, but I would submit that a percentage could be amenable to a slider. Just food for thought. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOLhryaOlrz5+0JdURAr2NAJ4pQhzqM2p/mgdxH/MsP8mVUP4RcgCdFXaa SHRObUYESn/kxKx4Rzk5/+I= =WCCk -END PGP SIGNATURE- ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UITextField Questions
On Mon, Jul 25, 2011 at 18:31, Brooke Gravitt bro...@gravitt.org wrote: On Mon, Jul 25, 2011 at 9:19 PM, Conrad Shultz con...@synthetiqsolutions.com wrote: Take a look at UITextInputTraits to specify a numeric keyboard. (IIRC this can be done in IB too.) Take a look at UITextFieldDelegate's textFieldShouldEndEditing: method to perform validation of input. I should also point out that often a text field is not the most appropriate control for restricted numeric input. If you have a reasonably small finite set of input values, consider UIPickerView. If you have a finite range for input, consider UISlider. (Sent from my iPhone.) -- Conrad Shultz Conrad, Thanks for the response! The fields in question are for setting a price and a percentage, respectively. They don't seem to fit into either category. I'll take a look at the UITextInputTraits the delegate's textFieldShouldEndEditing method as well! Thanks! Brooke Brooke, You would likely be much better off using UIPickerViews, or a UIPickerView and a UISlider as Conrad suggests. If the UISlider doesn't give you enough selection precision, then use another UIPickerView. You use the UITextField to keep the value for display purposes, but use the UIPickerViews for the value selection. In order to use the UITextField for display and the UIPickerView for the value selection instead of the keypad you would need to create the UIPickerViews and then set the UITextField inputView to the appropriate UIPickerView. When the user taps in the text field, instead of a keypad coming up, the picker view will come up. You can also set the inputAccesoryView to a UIToolbar that contains a done button so the picker view can be dismissed once the user selects the value. The picker view for the percentage would contain 2 or 3 columns for the decimal part (0 to 100) and as many columns for the fractional part as needed. The picker view for the price would contain as many columns for the dollar amount and 2 columns for the pennies. This assumes that the price value isn't too outrageously large that you can't fit the dollar amount in to columns such that the picker view becomes too wide, and you can get pretty wide if you drop the font size used for the columns. I can dig out some links to StackOverflow threads that I used to code up exactly this type of user interface in an app that I am writing. - h ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UITextField Questions
On Mon, Jul 25, 2011 at 10:29 PM, Howard Siegel hsie...@gmail.com wrote: Brooke, You would likely be much better off using UIPickerViews, or a UIPickerView and a UISlider as Conrad suggests. If the UISlider doesn't give you enough selection precision, then use another UIPickerView. You use the UITextField to keep the value for display purposes, but use the UIPickerViews for the value selection. In order to use the UITextField for display and the UIPickerView for the value selection instead of the keypad you would need to create the UIPickerViews and then set the UITextField inputView to the appropriate UIPickerView. When the user taps in the text field, instead of a keypad coming up, the picker view will come up. You can also set the inputAccesoryView to a UIToolbar that contains a done button so the picker view can be dismissed once the user selects the value. The picker view for the percentage would contain 2 or 3 columns for the decimal part (0 to 100) and as many columns for the fractional part as needed. The picker view for the price would contain as many columns for the dollar amount and 2 columns for the pennies. This assumes that the price value isn't too outrageously large that you can't fit the dollar amount in to columns such that the picker view becomes too wide, and you can get pretty wide if you drop the font size used for the columns. I can dig out some links to StackOverflow threads that I used to code up exactly this type of user interface in an app that I am writing. - h Howard, Thanks - I'm looking into your ( and Conrad's) suggestions. My app's been off the App Store for a about a year ( I let my dev subscription lapse ) so I was really trying to resurrect it and fix a few crashers. I wish I'd have done it this was originally :) I can't believe it even got approved with the serious bug in it. The Xcode banter has been interesting as well - count me as one of the folks who used ProjectBuilder/IB on NextStep and CodeWarrior MPW on the MacOS side. I still generally edit code in Vim, though. My flamewars have involved those heathens using emacs :) Thanks again! Brooke ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
On 25 jul 2011, at 11:16, Laurent Daudelin wrote: Well, one thing I just discovered in Xcode 4 and is already annoying me highly is that the app somehow uses CoreAnimation so that now, even though I'm running on battery, it forces the OS to use the Radeon video chipset instead of the integrated Intel's one, which is less power hungry. That is really not good as I go from having 7+ hours (theoretically) to 4+ hours. I'm going to fill a bug as I don't see any reason why Xcode needs to use fancy animations. That really defeats the purpose of having 2 video chipsets. Hm... I thought that we had fixed that particular issue. If you can reproduce this with Xcode 4.1, please file a bug report: http://developer.apple.com/bugreporter/ Thanks! j o a r ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UITextField Questions
On Mon, Jul 25, 2011 at 19:43, Brooke Gravitt bro...@gravitt.org wrote: The Xcode banter has been interesting as well - count me as one of the folks who used ProjectBuilder/IB on NextStep and CodeWarrior MPW on the MacOS side. I still generally edit code in Vim, though. My flamewars have involved those heathens using emacs :) Thanks again! Brooke I very gently dipped my hand in Mac development back at the dawn of time with Think Pascal, but never got very far. After a very long time away from Macs, I'm dipping my toes back in to it, starting with Xcode 3.2.5 and have not yet made the leap to Xcode 4.x. As for vi/vim vs emacs, count me as one of the heathens ;-). - h ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does anyone else dislike Xcode 4?
Radar ID: 9835172. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Jul 25, 2011, at 19:59, Joar Wingfors wrote: On 25 jul 2011, at 11:16, Laurent Daudelin wrote: Well, one thing I just discovered in Xcode 4 and is already annoying me highly is that the app somehow uses CoreAnimation so that now, even though I'm running on battery, it forces the OS to use the Radeon video chipset instead of the integrated Intel's one, which is less power hungry. That is really not good as I go from having 7+ hours (theoretically) to 4+ hours. I'm going to fill a bug as I don't see any reason why Xcode needs to use fancy animations. That really defeats the purpose of having 2 video chipsets. Hm... I thought that we had fixed that particular issue. If you can reproduce this with Xcode 4.1, please file a bug report: http://developer.apple.com/bugreporter/ Thanks! j o a r ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How can i change a app position and size?
Hi everyone, How can i change a app position and size by Pid number? thanks, Cheers, Diego Nogueira -- Atenciosamente, Diego Alvarez Nogueira Blog: http://diegonogueira.com.br | http://papoinformal.com Skype: nogueiradiego Twitter: @nogueiradiego ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Receiving unicode keyboard input
Hi All, For an NPAPI plugin we need to receive Unicode keyboard input. We are calling interpretKeyEvents and receiving the insertText message, but if I type option-e (for example) we are not getting the accented-e character. Can anyone shed some light on the right way to get unicode characters? Unfortunately we cannot use all the core Text stuff because (as mentioned) this is an NPAPI plugin and we don't even have access to the output view or window. Best, Bill Appleton ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to implement Autosaving, Browsing Versions, Reverting to Last Saved in Lion?
I'm having a difficult time figuring out how to implement these features correctly in Lion. I've created a very simple NSDocument based test app: http://pastebin.com/w396Xxi4 A document in this test app has a window and a text field, the user enters text in the text field, that text is the state of the document. The app saves and loads that text. I'm saving the data using dataOfType: error: and loading the data using readFromData: ofType: error:. The user interface (the text field in particular) is being updated after being loaded in windowControllerDidLoadNib: unless the data is being reverted, in which instead the user interface is being updated in readFromData: ofType: error: (to test if a document is being reverted, I check if an outlet such as the textField != nil) Now, the saving of the document works fine. Browsing and choosing a different saved version of the document also works fine. What doesn't work correctly is reverting to another version. For example, if I create a new document, save the document, make a change (entering something new in the text field and hitting enter), choose revert to last saved version from the window titlebar, and save again, I occasionally get an error message This document's file has been changed by another application since you opened or saved it. or I get The location of the document - cannot be determined. (I say occasionally because I cannot get it to error the first attempt I do this while a document is still open, but usually always get an error on my second, and further attempts). I can also reproduce this error when trying to save after choosing a different version in the versions browser, however, I think I can only reproduce the error in this case when my document is in an edited state before trying to choose another version (If I save before trying to choose a different version and then save after, I don't get get an error). Here's a couple images of the errors: http://dl.dropbox.com/u/10108199/error1.png http://dl.dropbox.com/u/10108199/error2.png Also, is there a better approach to loading a reverted document than what I'm doing (instead of testing if an outlet of a document is nil)? Any help would be appreciated. Thanks, -Zorg:-.___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Receiving unicode keyboard input
Hi All, For an NPAPI plugin we need to receive Unicode keyboard input. We are calling interpretKeyEvents and receiving the insertText message, but if I type option-e (for example) we are not getting the accented-e character. Can anyone shed some light on the right way to get unicode characters? Unfortunately we cannot use all the core Text stuff because (as mentioned) this is an NPAPI plugin and we don't even have access to the output view or window. Thanks in advance ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Dialog Command Keys
Hi all, Based on my app, the dialog boxes have to be created dynamically, so i can't use Interface Builder, so they are assembled out of cocoa controls as needed. My dialogs beep when i control-x to cut some selected text What is the simple way for my dialog window to pass these command keys events down to the text views? Thanks in advance ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Problems with tearing down an NSStatusItem menu
I'm working on a GC application that makes use of an NSStatusItem to display a menu to users. I create the NSStatusItem in my controllers awakeFromNib method, like so: self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength]; [self.statusItem setImage:[NSImage imageNamed:@StatusIconIdle.png]]; [self.statusItem setAlternateImage:[NSImage imageNamed:@ StatusIconSelected.png]]; [self.statusItem setMenu:statusMenu]; [self.statusItem setHighlightMode:YES]; statusMenu is loaded via NIB and contains a mixture of static NSMenuItems (setup via IB) and dynamically created NSMenuItem instances. Each dynamic NSMenuItem is generated during a call to NSMenuDelegate's menuNeedsUpdate function. These dynamic NSMenuItems are created with submenus which contain further NSMenuItems with custom views. Here's an example of one such NSMenuItem: FileRecordPreviewMenuItemView *previewMenuItemView = [[FileRecordPreviewMenuItemView alloc] initWithURL:url]; [previewMenuItem setView:previewMenuItemView]; [menu insertItem:previewMenuItem atIndex:[menu numberOfItems]]; Everything works as expected. All menus are rendered correctly, interaction is absolutely perfect. The issue I'm experiencing is that upon Quitting the application, I experience a crash and see the following error printed to Console: Error: kCGErrorIllegalArgument: CGSGetWindowPresenter Error: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged. Setting the requested breakpoint and performing a stack trace returns the following: #0 0x7fff90766dec in CGErrorBreakpoint () #1 0x7fff90766a5a in CGSGlobalErrorv () #2 0x7fff9080e969 in _GetWindowRightHolder () #3 0x7fff8e417deb in _NXPresentsWindow () #4 0x7fff8e417d83 in _NXOrderWindow () #5 0x7fff8e5b936e in -[NSCarbonWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] () #6 0x7fff8e38fc89 in -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] () #7 0x7fff8e38f90f in -[NSWindow orderWindow:relativeTo:] () #8 0x7fff8e50d677 in __-[NSWindow _close]_block_invoke_1 () #9 0x7fff8e50d487 in -[NSWindow _close] () #10 0x7fff8e927a36 in -[NSWindow _closeForTermination] () #11 0x7fff91d219e1 in -[NSObject performSelector:] () #12 0x7fff91d25e22 in -[NSArray makeObjectsPerformSelector:] () #13 0x7fff8e54b92a in -[NSApplication _deallocHardCore:] () #14 0x7fff8e29b72c in -[NSApplication terminate:] () #15 0x7fff91d1a11d in -[NSObject performSelector:withObject:] () #16 0x7fff8e399852 in -[NSApplication sendAction:to:from:] () #17 0x7fff8e48634f in -[NSMenuItem _corePerformAction] () #18 0x7fff8e486086 in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] () #19 0x7fff8e721e9c in -[NSMenu _internalPerformActionForItemAtIndex:] () #20 0x7fff8e5b43f1 in -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] () #21 0x7fff8e4000bf in NSSLMMenuEventHandler () #22 0x7fff89e078ec in DispatchEventToHandlers () #23 0x7fff89e06ef8 in SendEventToEventTargetInternal () #24 0x7fff89e1dd03 in SendEventToEventTarget () #25 0x7fff89e64249 in SendHICommandEvent () #26 0x7fff89f4b0f1 in SendMenuCommandWithContextAndModifiers () #27 0x7fff89f915e1 in SendMenuItemSelectedEvent () #28 0x7fff89e5d32d in FinishMenuSelection () #29 0x7fff89f89fed in PopUpMenuSelectCore () #30 0x7fff89f8a2ac in _HandlePopUpMenuSelection7 () #31 0x7fff8e5b70bd in _NSSLMPopUpCarbonMenu3 () #32 0x7fff8e95e02e in _NSPopUpCarbonMenu3 () #33 0x7fff8e5b5222 in -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] () #34 0x7fff8e8132f6 in +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] () #35 0x7fff8e8135a1 in -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] () #36 0x7fff8e397786 in -[NSControl mouseDown:] () #37 0x7fff8e36266e in -[NSWindow sendEvent:] () #38 0x7fff8e813fb4 in -[NSStatusBarWindow sendEvent:] () #39 0x7fff8e2faf19 in -[NSApplication sendEvent:] () #40 0x7fff8e29142b in -[NSApplication run] () #41 0x7fff8e50f52a in NSApplicationMain () #42 0x00011ca0 in start () Continuing after the breakpoint is triggered results in the following output to Console: Error: kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 1758 Error: kCGErrorIllegalArgument: CGSOrderWindowListWithGroups: invalid window ID (1758) Error: kCGErrorIllegalArgument: CGSOrderWindowList: NULL list pointer or empty list I've been scratching my head for a good day or so trying to get to the bottom of this. I noticed a correlation between experiencing the crash on exit and accessing my NSMenu submenus. If the submenus are displayed, the application will always crash on exit. If I edit my code so that my submenu items aren't populated with custom views, the crash never occurs. This led me to
Re: Dialog Command Keys
On Mon, Jul 25, 2011 at 1:43 PM, Bill Appleton billapple...@dreamfactory.com wrote: Hi all, Based on my app, the dialog boxes have to be created dynamically, so i can't use Interface Builder, so they are assembled out of cocoa controls as needed. My dialogs beep when i control-x to cut some selected text What is the simple way for my dialog window to pass these command keys events down to the text views? Please read the Cocoa Event Handling Guide: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/Introduction/Introduction.html#//apple_ref/doc/uid/1060i-CH1-SW1 --Kyle Sluder ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How can i change a app position and size?
On Jul 24, 2011, at 4:14 PM, Diego Alvarez Nogueira wrote: How can i change a app position and size by Pid number? You mean resizing other apps’ windows? I think the only option is using UI Scripting, where you can send an app AppleEvents that generate fake user input events like clicks and drags. Look it up in the developer documentation. —Jens___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
App won't get to my code in Lion
My app won't start at all in Lion. I always thought the first code will be in - (void)applicationWillFinishLaunching:(NSNotification *)aNotification but that code is never reached. So I am a loss of how to fix it. Many of my users claim they can get it running by deleting the folder ~/Library/Icons but other users claim that does not help? John Nairn http://www.geditcom.com Genealogy Software for the Mac ___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App won't get to my code in Lion
On Jul 25, 2011, at 10:19 PM, John Nairn wrote: My app won't start at all in Lion. I always thought the first code will be in - (void)applicationWillFinishLaunching:(NSNotification *)aNotification Not necessarily. For instance, if you have -awakeFromNib methods in objects in your main nib, those will run earlier. but that code is never reached. So I am a loss of how to fix it. What happens if you run the app from Xcode? Does it report a crash? What’s the stack look like? If that doesn’t give you useful info, try adding a breakpoint on exceptions (search the docs for details on how). —Jens___ 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 Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com