Stack trace for exceptions trimmed off on Lion?

2011-08-07 Thread Oleg Krupnov
Hi, I've occasionally noticed after upgrading to Lion that my exception handling code no longer provides full stack trace, but only some trimmed piece. For example, I performed the following experiment. There is an -emulateCrash: action method, implemented in MyWindowController, attached to a men

Re: Asynchronous downloading and parsing of XML

2011-08-07 Thread Mikkel Islay
Thanks for sharing with the list. I wonder what the purpose of NSURLConnection is in this solution? Aren't you in effect throwing away the benefits of asynchronous loading? The NSInputstream can block, and NSXMLParser presumably will. You will also have to deal with events in several places, and

Re: Asynchronous downloading and parsing of XML

2011-08-07 Thread Thomas Davie
The purpose of the NSURLConnection is to deal with HTTP… How else would you propose dealing with it? I'm not sure why you think this throws away benefits of async loading, can you clarify that? Thanks Tom Davie On 7 Aug 2011, at 12:47, Mikkel Islay wrote: > Thanks for sharing with the list.

Re: NSImageView vs IKImageView

2011-08-07 Thread Graham Cox
On 07/08/2011, at 4:56 PM, James Merkel wrote: > updating of some text boxes in the same window. > But I have fixed that. I just needed an update method for the window No you don't. Updating a text box is also automatic. There's almost never a reason to "update a window", views that come from

Strange NSZombie occurring

2011-08-07 Thread Scott Steinman
I've got a zombie appearing in the weirdest place in my program. Here is the relevant part of the code, using generic names for the methods: -(void)setUp; -(void)start; -(void)changeWords:(NSTimer*)theTimer; -(NSArray *)wordsInPhrase:(NSString *)thePhrase; @property (nonatomic, assign) int numW

Re: Drawing text like Lion's Mail

2011-08-07 Thread Andre Masse
For those interested, Matt and Kyle were right. Helvetica Neue Bold 20pts. All my attempts to replicate the shadow have failed though. I'm using 85% white and it's good enough for me. Thanks to all, Andre Masse ___ Cocoa-dev mailing list (Cocoa-dev

Re: Strange NSZombie occurring

2011-08-07 Thread Keary Suska
On Aug 7, 2011, at 7:10 AM, Scott Steinman wrote: > I've got a zombie appearing in the weirdest place in my program. Here is the > relevant part of the code, using generic names for the methods: > First off, this isn;t a zombie issue. Zombies are objects that haven't died though they should h

Re: Strange NSZombie occurring

2011-08-07 Thread Andy Lee
On Aug 7, 2011, at 9:10 AM, Scott Steinman wrote: > -(void)setUp > { > words = [[self wordsFromPhrase:phrase]] retain]; > [self start]; > } Is this your exact code? You use wordsFromPhrase: here but the method below is wordsInPhrase:. > -(NSArray *)wordsInPhrase:(NSString *)thePhrase > { >

Re: NSImageView vs IKImageView

2011-08-07 Thread James Merkel
On Aug 7, 2011, at 5:17 AM, Graham Cox wrote: On 07/08/2011, at 4:56 PM, James Merkel wrote: updating of some text boxes in the same window. But I have fixed that. I just needed an update method for the window No you don't. Updating a text box is also automatic. There's almost never

Re: Strange NSZombie occurring

2011-08-07 Thread Andy Lee
On Aug 7, 2011, at 10:25 AM, Andy Lee wrote: > On Aug 7, 2011, at 9:10 AM, Scott Steinman wrote: >> -(void)setUp >> { >> words = [[self wordsFromPhrase:phrase]] retain]; >> [self start]; >> } > > Is this your exact code? You use wordsFromPhrase: here but the method below > is wordsInPhrase:.

Re: Strange NSZombie occurring

2011-08-07 Thread Fritz Anderson
Is this really your code? There are some oddities that make me wonder. Also, your subject line talks about NSZombie (an instance of a class that gets substituted into an object when it is released, if you have NSZombieEnabled set), but your complaint is that a property is nil when you don't expe

Re: NSImageView vs IKImageView

2011-08-07 Thread Ken Thomases
On Aug 7, 2011, at 7:17 AM, Graham Cox wrote: > Your implementation seems to be built on faulty assumptions about how > views/windows work, which in turn suggests you haven't read the documentation: > > http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaViewsGuide/Introd

Re: Strange NSZombie occurring

2011-08-07 Thread Dr. Scott Steinman
Ah. I see some of your points. Very dumb of me. I'm new to Cocoa, but I did program in a number of other languages for 30 years. I apologize for not being clear enough. Pain and nausea tend to mess up the clarity of my thinking. Unfortunately, I'm ill most of the time (don't ask about my heal

Re: Strange NSZombie occurring

2011-08-07 Thread Scott Ribe
On Aug 7, 2011, at 10:51 AM, Dr. Scott Steinman wrote: > I don't like to bother other people with my problems (besides, learning from > my mistakes was the way I learned before). Maybe with Cocoa this is a bad > idea. Have you seen Hillegass's book on Cocoa. It's an excellent start for Cocoa

iTunes Sidebar

2011-08-07 Thread koko
I am trying to get behavior like Show or hide iTunes <10.3.1 (55)>sidebar. I am close but some fine points are defeating me. I have a vertical split view of which the 0th view is a table in a scroll view and the 1st view is a generic NSView. The splitter is a thin splitter. This looks like iTu

Re: Drawing text like Lion's Mail

2011-08-07 Thread Siegfried
On 07/08/2011, at 10:52, Andre Masse wrote: > For those interested, Matt and Kyle were right. Helvetica Neue Bold 20pts. > All my attempts to replicate the shadow have failed though. I'm using 85% > white and it's good enough for me. > The shadow is just an "inner shadow". The problem is that

Re: Asynchronous downloading and parsing of XML

2011-08-07 Thread Jens Alfke
On Aug 7, 2011, at 4:47 AM, Mikkel Islay wrote: > I wonder what the purpose of NSURLConnection is in this solution? To do the HTTP fetching. This is a PITA to get right if you implement it yourself, if that’s what you’re thinking of. > Aren't you in effect throwing away the benefits of asynchr

Re: resizing window containing NSView with CALayer

2011-08-07 Thread julius
On 7 Aug 2011, at 02:31, Graham Cox wrote: > I think you need to set the resizing mask for the layer as well - since > you're creating this yourself, it's your responsibility: > > zCALayerRoot.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable; > > If you want the layer to redraw i

Re: resizing window containing NSView with CALayer

2011-08-07 Thread julius
On 7 Aug 2011, at 02:31, Graham Cox wrote: > I think you need to set the resizing mask for the layer as well - since > you're creating this yourself, it's your responsibility: > > zCALayerRoot.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable; > > If you want the layer to redraw

Re: resizing window containing NSView with CALayer

2011-08-07 Thread Kyle Sluder
On Sun, Aug 7, 2011 at 1:05 PM, julius wrote: > It is not a problem with the layers. > I get exactly the same behaviour if I leave out all the layer stuff and > instead code the following in the view Meaning, you still call -setLayer: and -setWantsLayer:, but don't do anything else with the laye

Re: Referencing an object after sending a release message to it

2011-08-07 Thread Charles Srstka
On Aug 6, 2011, at 6:57 PM, Thomas Wetmore wrote: > It may look odd to use an object that has been just released, but there is > nothing wrong in this case, and no assumptions are needed here. As soon as > the object has been added to the array it has been safely retained on the > same thread b

Signing for sandboxing (was NSPersistentDocument: SQLite error 21...)

2011-08-07 Thread Fritz Anderson
On 6 Aug 2011, at 4:28 PM, Fritz Anderson wrote: > I have an NSPersistentDocument, with autosave-in-place enabled. When I try to > save the document after editing it, it balks with both application-modal > alerts and document-modal sheets, all with generic messages about being > unable to creat

Re: Drawing text like Lion's Mail

2011-08-07 Thread Andre Masse
Interesting. Not sure if could be possible to convert the text to an image, apply a gradient and use one of the copy method of NSImage. I needed a break from coding data migration, hence the pause trying this. Now, I'm back to the boring part ;-) Looks like your image didn't pass the list. Feel

Re: resizing window containing NSView with CALayer

2011-08-07 Thread Graham Cox
On 08/08/2011, at 5:52 AM, julius wrote: > - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { I didn't notice first time through that this is where your code resides (sometimes the most obvious errors pass by when you're looking out for a more subtle error). It's certain

help with this error

2011-08-07 Thread Rick C.
Hi again, Does anyone know what could cause my app to trigger this error in Console: kernel: mcxalr{4} ** Denying execute for uid=504 appname Any insight would be much appreciated thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: help with this error

2011-08-07 Thread John Joyce
On Aug 8, 2011, at 10:04 AM, Rick C. wrote: > Hi again, > > Does anyone know what could cause my app to trigger this error in Console: > > kernel: mcxalr{4} ** Denying execute for uid=504 appname > > Any insight would be much appreciated thanks! > __

Re: Strange NSZombie occurring

2011-08-07 Thread Dr. Scott Steinman
> Have you seen Hillegass's book on Cocoa. It's an excellent start for Cocoa > newbies. I took Aaron's course about 10 years ago, but didn't have a chance to use Cocoa since then due to job requirements. I lost a lot of my books recently in a disaster (aren't you all getting tired of knowing h

Zinnia on iPad

2011-08-07 Thread Claudio Ceballos Paz
Hello, friends. I'm trying to integrate Zinnia [1] on my iPad proyect. But I don't know how to integrate a C++ library to my Objective-C proyect. I've seen some tutorials on genereic integration of C++ and Objective-C++. Can anyone help me? I'm quite lost. Thanks. [1] http://zinnia.sourceforge.ne

Re: Zinnia on iPad

2011-08-07 Thread Conrad Shultz
I believe you posted this to xcode-users yesterday and got several useful responses. Can you elaborate on your specific challenges? (Sent from my iPhone.) -- Conrad Shultz www.synthetiqsolutions.com On Aug 6, 2011, at 13:00, Claudio Ceballos Paz wrote: > Hello, friends. > I'm trying to integr

CFURLWriteDataAndPropertiesToResource as root?

2011-08-07 Thread Stephen Blinkhorn
Hello, Under Tiger, Leopard, and Snow Leopard I use CFURLWriteDataAndPropertiesToResource to store some data into a file. On Lion the default permissions appear to have been upgraded almost everywhere and consequently the code below isn't succeeding. Is it possible to run the below code a

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-07 Thread Kyle Sluder
On Sun, Aug 7, 2011 at 8:48 PM, Stephen Blinkhorn wrote: > Hello, > > Under Tiger, Leopard, and Snow Leopard I use > CFURLWriteDataAndPropertiesToResource to store some data into a file. On > Lion the default permissions appear to have been upgraded almost everywhere > and consequently the code be

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-07 Thread Stephen Blinkhorn
It's a validation file containing registration details. My product is an AudioUnit plugin so there's no App Store potential but I'd prefer to keep things clean just in case. I don't care where I write the file much (previously I wrote it to "/ Library/Preferences") but even the hard drive ro

NSMutableArray Adding, Sorting and Removing?

2011-08-07 Thread Kevin Bracey
Hi All, I don't want to fall prey to preemptive optimising but I was wondering? I have a NSMutableArray and I'm sticking actions in it that are then sorted by NSDate compare:, things I need done at a certain day or time neatly in order. Up to about 1000 pending actions. Currently, I check the

Re: NSMutableArray Adding, Sorting and Removing?

2011-08-07 Thread Quincey Morris
On Aug 7, 2011, at 23:09 , Kevin Bracey wrote: > My question is would it be more efficient to sort the array so the next > action becomes the Last object of the array and remove it from the top > instead of the bottom? > > Or is this all so efficient it make no real difference. It's not a ques

Notification of autocomplete

2011-08-07 Thread Joshua Garnham
Is there some notification that is posted or some other way to tell when in a NSTextView or any editable element that something has been autocorrected? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request