Re: App won't get to my code in Lion

2011-07-25 Thread John Nairn
I now managed to get some feedback. When running with debugger, the Xcode console lists Program loaded. run [Switching to process 7184] Running… sharedlibrary apply-load-rules all unable to read unknown load command 0x24 unable to read unknown load command 0x26 unable to read unknown load command

Re: App won't get to my code in Lion

2011-07-25 Thread John Nairn
>> 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 cod

Re: NSTask oddity with getting stdout

2011-07-25 Thread Shane Stanley
On 26/7/11 1:14 AM, "Scott Ribe" wrote: > 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 s

Re: App won't get to my code in Lion

2011-07-25 Thread Jens Alfke
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,

App won't get to my code in Lion

2011-07-25 Thread John Nairn
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/I

Re: How can i change a app position and size?

2011-07-25 Thread Jens Alfke
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

Re: Dialog Command Keys

2011-07-25 Thread Kyle Sluder
On Mon, Jul 25, 2011 at 1:43 PM, Bill Appleton 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

Problems with tearing down an NSStatusItem menu

2011-07-25 Thread Nial Giacomelli
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:[NSI

Dialog Command Keys

2011-07-25 Thread Bill Appleton
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 eve

Receiving unicode keyboard input

2011-07-25 Thread Bill Appleton
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? U

How to implement Autosaving, Browsing Versions, Reverting to Last Saved in Lion?

2011-07-25 Thread Zorg
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 "sta

Receiving unicode keyboard input

2011-07-25 Thread Bill Appleton
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? U

How can i change a app position and size?

2011-07-25 Thread Diego Alvarez Nogueira
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 _

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Laurent Daudelin
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

Re: UITextField Questions

2011-07-25 Thread Howard Siegel
On Mon, Jul 25, 2011 at 19:43, Brooke Gravitt 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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Joar Wingfors
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 i

Re: UITextField Questions

2011-07-25 Thread Brooke Gravitt
On Mon, Jul 25, 2011 at 10:29 PM, Howard Siegel 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

Re: UITextField Questions

2011-07-25 Thread Howard Siegel
On Mon, Jul 25, 2011 at 18:31, Brooke Gravitt wrote: > On Mon, Jul 25, 2011 at 9:19 PM, Conrad Shultz > 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 t

Re: UITextField Questions

2011-07-25 Thread Conrad Shultz
-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 > d

Re: Problem getting my layers to draw in the right order

2011-07-25 Thread Graham Cox
Hi David, This sounds somewhat close to what I have already. My layer hierarchy is: Root | - || | Rep1Rep2 Rep3 || |

Re: UITextField Questions

2011-07-25 Thread Brooke Gravitt
On Mon, Jul 25, 2011 at 9:19 PM, Conrad Shultz 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 th

Re: UITextField Questions

2011-07-25 Thread Conrad Shultz
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 res

UITextField Questions

2011-07-25 Thread Brooke Gravitt
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

Re: Fastest high-quality thumbnail display

2011-07-25 Thread James Merkel
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:

Disable Lion's window restoration?

2011-07-25 Thread Gerd Knops
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 NSDocumentCon

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Laurent Daudelin
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..

Re: Fastest high-quality thumbnail display

2011-07-25 Thread Mike Abdullah
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

How do I update re-sort the fetch results associated with an NSFetchedResultsController instance?

2011-07-25 Thread Michael Crawford
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

Re: Windows get released on 10.6, leak on 10.7

2011-07-25 Thread Ross Carter
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 > > 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

Re: Problem in coming out of modal run loop

2011-07-25 Thread Keary Suska
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 noth

Re: can't build iPhone apps, certificate error

2011-07-25 Thread Wilker
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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread George Toledo
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;

Fastest high-quality thumbnail display

2011-07-25 Thread James Merkel
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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Jean-Daniel Dupas
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 >

Re: can't build iPhone apps, certificate error

2011-07-25 Thread Conrad Shultz
-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 ye

iOS4: glReadPixels() to CMSampleBufferRef for video?

2011-07-25 Thread John Michael Zorko
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 frame

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Dave DeLong
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 (Coco

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread JongAm Park
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-

can't build iPhone apps, certificate error

2011-07-25 Thread Wilker
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 befor

Lion document opening: -[__NSArrayM insertObject:atIndex:]: object cannot be nil

2011-07-25 Thread Benjamin Rister
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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Laurent Daudelin
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 r

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread JongAm Park
On Jul 25, 2011, at 10:42 AM, Nick Zitzmann wrote: > On Jul 25, 2011, at 10:02 AM, JongAm Park wrote: > >> 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 >

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Nick Zitzmann
On Jul 25, 2011, at 10:02 AM, JongAm Park wrote: > 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 Just like Visual Studio, Xcode 4 works best when it's running

Re: Problem getting my layers to draw in the right order

2011-07-25 Thread David Duncan
On Jul 24, 2011, at 9:46 PM, Graham Cox wrote: > I'm having a problem establishing the right Z-ordering of Core Animation > layers in a view. I've tried carefully controlling the stacking order of the > view's sublayers, and I've also tried setting the zPosition property, but the > problem I'm

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread JongAm Park
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 vie

Re: NSTask oddity with getting stdout

2011-07-25 Thread Scott Ribe
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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Scott Ribe
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. Neithe

Re: Lion NSSpeechSynthesizer leak?

2011-07-25 Thread Gary L. Wade
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 starte

Re: NSTask oddity with getting stdout

2011-07-25 Thread Scott Ribe
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 theo

Re: EXC_BAD_ACCESS in NSApplicationMain

2011-07-25 Thread Ayers, Joseph
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 -[NS

Re: Lion NSSpeechSynthesizer leak?

2011-07-25 Thread Eric E. Dolecki
I say radar everything. On Mon, Jul 25, 2011 at 8:12 AM, Bill Cheeseman 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 -

Lion NSSpeechSynthesizer leak?

2011-07-25 Thread Bill Cheeseman
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

Problem in coming out of modal run loop

2011-07-25 Thread Abhijeet Singh
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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread brodhage
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"). The

Re: NSTask oddity with getting stdout

2011-07-25 Thread Shane Stanley
On 25/7/11 3:01 PM, "Stephen J. Butler" 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 no

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread vincent habchi
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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Jean-Daniel Dupas
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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Jean-Daniel Dupas
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 hav

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread vincent habchi
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