Re: ivar access during -finalize

2012-03-10 Thread Eric Wing
On 3/10/12, Quincey Morris wrote: > On Mar 10, 2012, at 17:08 , jonat...@mugginsoft.com wrote: > >> On 10 Mar 2012, at 22:51, Eric Wing wrote: >> >>> Just another angle on your original problem, have you considered using >>> CFRetain and CFRelease on _myIvar? These are still meaningful in >>> garb

Forcing subclass creation through method swizzling not airtight?

2012-03-10 Thread Antonio Nunes
In the latest public release of my software, I used method swizzling to force creation of my subclass when the system tries to create instances of its superclass. However, I have received a very few reports where apparently instances of the superclass are still created, and wreak havoc (i.e. the

Re: updating old nsapplescript methods

2012-03-10 Thread Rick C.
Thank you Jerry and yes this was my mistake of reading only the class documentation! The rest is pretty clear thanks again! rc On Mar 10, 2012, at 9:54 PM, Jerry Krinock wrote: > > On 2012 Mar 10, at 01:07, Rick C. wrote: > >> I have a number of older nsapplescript methods in a project tha

Re: ivar access during -finalize

2012-03-10 Thread Quincey Morris
On Mar 10, 2012, at 17:08 , jonat...@mugginsoft.com wrote: > On 10 Mar 2012, at 22:51, Eric Wing wrote: > >> Just another angle on your original problem, have you considered using >> CFRetain and CFRelease on _myIvar? These are still meaningful in >> garbage collection mode. Using CFRetain when y

Re: ivar access during -finalize

2012-03-10 Thread jonat...@mugginsoft.com
On 10 Mar 2012, at 22:51, Eric Wing wrote: > Just another angle on your original problem, have you considered using > CFRetain and CFRelease on _myIvar? These are still meaningful in > garbage collection mode. Using CFRetain when you get/create _myIvar, > it would presumably still be alive in you

Re: ivar access during -finalize

2012-03-10 Thread Eric Wing
Just another angle on your original problem, have you considered using CFRetain and CFRelease on _myIvar? These are still meaningful in garbage collection mode. Using CFRetain when you get/create _myIvar, it would presumably still be alive in your finalize method until you call CFRelease on it. -E

Re: Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-10 Thread R
It's there For some reason, a previous backup works fine on both platforms. I give up will rewrite code to bring back up to speed. Apple Updates are starting to make me nervous... Thanks for the help -- Ron On Mar 10, 9:55 am, Roland King wrote: > Is the story board actually in the

Re: Can't get same window to show twice

2012-03-10 Thread Sergei Gnezdov
Thanks Point B is right on target. Once I connected the window I got it working as expected. On Mar 3, 2012, at 3:04 AM, Ken Thomases wrote: > On Mar 2, 2012, at 4:34 AM, -Sergei G- wrote: > >> 1st time I click on menu item I see the window. I then use close button. >> Click on the same menu

Re: Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-10 Thread Roland King
Is the story board actually in the bundle? Go take a look at what you built and make sure it's in there . On Mar 11, 2012, at 12:00 AM, R wrote: > I run the app in Xcode 4.2 just fine. > > I move the exact same app over to 4.3, change target to iOS 5.1 and > get the error: > > "Could not find

Re: Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-10 Thread R
I run the app in Xcode 4.2 just fine. I move the exact same app over to 4.3, change target to iOS 5.1 and get the error: "Could not find a storyboard named 'MainStoryboard' in bundle NSBundle" My storyBoard is listed in plist. Any thoughts? On Mar 9, 7:48 pm, Roland King wrote: > Have you tr

Re: updating old nsapplescript methods

2012-03-10 Thread Jerry Krinock
On 2012 Mar 10, at 01:07, Rick C. wrote: > I have a number of older nsapplescript methods in a project that I would like > to update to something newer. Huh? > the non-thread safety is an issue Maybe you've made the mistake of reading the class documentation, https://developer.apple.com/libr

Calling objc_getAssociatedObject in -finalize.

2012-03-10 Thread jonat...@mugginsoft.com
Consider a GC app. It is not safe to access object ivars during -finalize due to the uncertainty which self and the ivar objects will be finalised. Question: Is it safe to call objc_getAssociatedObject in -finalize or do the same caveats apply? I have no real idea how the collector treats such a

Re: Versions browser, file access, revertToSaved

2012-03-10 Thread Martin Hewitson
On Mar 9, 2012, at 04:27 AM, Jerry Krinock wrote: > On 2012 Mar 07, at 23:48, Martin Hewitson wrote: > >> I have an app which works with autosave and Versions browser. > > Oh, so you've implemented +[NSDocument autosavesInPlace] ;) > >> I have a file-monitor in the app which reloads the docum

updating old nsapplescript methods

2012-03-10 Thread Rick C.
Hi, I have a number of older nsapplescript methods in a project that I would like to update to something newer. Although there are/were a few things that nsapplescript could do quite easily the non-thread safety is an issue and always dealing with quotations and having to escape them is a bit

Re: The current preferred method for fetching HTTP URLs for IOS

2012-03-10 Thread Andreas Grosam
c On Mar 9, 2012, at 8:14 PM, Alex Zavatone wrote: > I've been reading (and trying out) a few approaches on HTTP communication > using GCD to do a dispatch_sync or dispatch_async to a dispatch queue or > using an NSURLRequest. > > Which of these is the preferred method for ingesting strings fro