Re: archiving report

2013-02-27 Thread Kyle Sluder
On Feb 27, 2013, at 10:46 PM, "Gerriet M. Denkmann" wrote: > > On 28 Feb 2013, at 02:28, Tony Parker wrote: > >> On Feb 26, 2013, at 10:56 AM, Gerriet M. Denkmann >> wrote: >>> >>> On 27 Feb 2013, at 01:00, Gwynne Raskind wrote: >>> > 2. NSKeyedArchiver seems to be ok. >But i

How to unarchive?

2013-02-27 Thread Gerriet M. Denkmann
Assume I do: ThingWhichKnowsItsContainer *a = [[ ThingWhichKnowsItsContainer alloc ] init]; NSArray *array = @[ a ]; a.theContainer = array; NSData *d = [ NSKeyedArchiver archivedDataWithRootObject: array]; NSArray *unarchivedArray = [ MyVeryOwnUnarchiver: unarchiveObjectWithData: d ]; MyVeryOwnU

Re: archiving report

2013-02-27 Thread Gerriet M. Denkmann
On 28 Feb 2013, at 02:28, Tony Parker wrote: > On Feb 26, 2013, at 10:56 AM, Gerriet M. Denkmann > wrote: >> >> On 27 Feb 2013, at 01:00, Gwynne Raskind wrote: >> 2. NSKeyedArchiver seems to be ok. But it does create unnecessary data. E.g. in the case of an array containi

Re: Build setting for embedded dylib?

2013-02-27 Thread Graham Cox
On 28/02/2013, at 2:03 PM, Kyle Sluder wrote: > 1. Did you actually verify that you're setting the install name of the dylib > to the correct value? > > 2. You should probably use @rpath instead of @executable_path. > > Do read Mike Ash's blog post on the topic of install name. It's a bit ter

Re: Build setting for embedded dylib?

2013-02-27 Thread Kyle Sluder
On Feb 27, 2013, at 6:53 PM, Graham Cox wrote: > Hi all, > > I have a private dylib that my app links to. This dylib is copied into the > app's bundle (at the moment into /Frameworks, this might be the wrong place), > but at runtime this isn't found, as it appears to be searching in > /usr/lo

Build setting for embedded dylib?

2013-02-27 Thread Graham Cox
Hi all, I have a private dylib that my app links to. This dylib is copied into the app's bundle (at the moment into /Frameworks, this might be the wrong place), but at runtime this isn't found, as it appears to be searching in /usr/local/lib/. What setting do I need to add to ensure that at ru

Re: 2 icons showing in dock

2013-02-27 Thread Rick C.
I have users still reporting this to me on 10.8.2. I am calling kProcessTransformToForegroundApplication in initialize maybe this is my problem? On Feb 28, 2013, at 9:48 AM, Seth Willits wrote: > > Yeah, there's nothing you can do about it (and as I recall it wasn't a big > deal anyway). W

Re: 2 icons showing in dock

2013-02-27 Thread Seth Willits
Yeah, there's nothing you can do about it (and as I recall it wasn't a big deal anyway). When I first heard about it, it was right around 10.7.0 so it was users either on 10.6 or early 10.7. I haven't heard a user complain about it in a long time, so it was probably fixed somewhere in later 10.

Re: Convention for init with error

2013-02-27 Thread Brad O'Hearne
Quincey and John, Thank you both for the replies and opinions. I do like the factory method approach, however there is something about a mandatory process or workflow for using an object that seems like it should naturally be put in an init method. It sometimes strikes me a little weird when I

Re: Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
Thanks for the followup Greg. Chris On Wed, Feb 27, 2013 at 5:05 PM, Greg Parker wrote: > On Feb 27, 2013, at 4:52 PM, Chris Markle wrote: >> Anyone have any success using this on technique to annotate crash >> reports on iOS? > > The iOS crash reporter does not support these annotations. Sorry

Re: 2 icons showing in dock

2013-02-27 Thread Rick C.
Yes that's it! So if there's no solution for now I guess I'm stuck... :-( And to answer previous questions yes both icons point to the same location... On Feb 28, 2013, at 8:20 AM, Seth Willits wrote: > > For what it's worth, I'm certain there's a bug in some versions of OS X where > apps

Re: Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Greg Parker
On Feb 27, 2013, at 4:52 PM, Chris Markle wrote: > Anyone have any success using this on technique to annotate crash > reports on iOS? The iOS crash reporter does not support these annotations. Sorry. -- Greg Parker gpar...@apple.com Runtime Wrangler _

Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
In "Application Specific Crash Report Information" (http://mjtsai.com/blog/2013/02/27/application-specific-crash-report-information/) Michael Tsai notes: * * * his comments * * * Wil Shipley shows how an application can add information to a crash log by assigning to a special string variable. I se

Re: 2 icons showing in dock

2013-02-27 Thread Seth Willits
For what it's worth, I'm certain there's a bug in some versions of OS X where apps that transform from background to foreground processes ("TransformProcessType" or the newer NSApplication activation policy) would cause the Dock to show two icons. I'm pretty sure I filed a radar for it a long

Re: Convention for init with error

2013-02-27 Thread Quincey Morris
On Feb 27, 2013, at 13:12 , Brad O'Hearne wrote: > - (id)init:(NSError **)error; > { >self = [super init]; > >if (self) >{ >if ([self operationThatMightFail:error]) >{ >*error = nil; >} >else >{ >return nil; >} >

Re: Convention for init with error

2013-02-27 Thread John McCall
On Feb 27, 2013, at 1:12 PM, Brad O'Hearne wrote: > I have a need to construct an object with the possibility of an error taking > place and needing to return that error. While it would be nice to have a > clean init method that returned no errors, in this particular case, the error > belongs w

Convention for init with error

2013-02-27 Thread Brad O'Hearne
Hello, I have a need to construct an object with the possibility of an error taking place and needing to return that error. While it would be nice to have a clean init method that returned no errors, in this particular case, the error belongs with init. I've been pondering two ways of doing th

Re: archiving report

2013-02-27 Thread Jens Alfke
On Feb 27, 2013, at 11:28 AM, Tony Parker wrote: > Out of curiosity, what do you expect to happen if your string is @“ab” or > something even longer, but repeated 1 million times? Your test implies that > the answer is 2,000,000 but in fact the answer is that it only grows one more > byte. Th

Re: 2 icons showing in dock

2013-02-27 Thread Michael Bauer
A shot in the dark but will this solve the problem? kills lsregister. http://underurhat.com/tips-tricks/os-x-lion-how-to-fix-the-duplicate-application-bug-in-open-with-menu/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: archiving report

2013-02-27 Thread Tony Parker
Hi Gerriet, On Feb 26, 2013, at 10:56 AM, Gerriet M. Denkmann wrote: > > On 27 Feb 2013, at 01:00, Gwynne Raskind wrote: > >> On Feb 26, 2013, at 12:47 PM, Gerriet M. Denkmann >> wrote: >>> My investigations regarding archiving on OS X: >>> >>> 1. NSArchiver stores all strings in Utf-8. >>

Re: 2 icons showing in dock

2013-02-27 Thread Rob McBroom
On Feb 27, 2013, at 3:45 AM, Stephane Sudre wrote: > On Wed, Feb 27, 2013 at 9:27 AM, Rick C. wrote: >> Hi, >> >> When a customer adds my app to Login Items in System Preferences it >> (sometimes) causes my app to launch showing 2 icons in the dock after a >> restart. Only one instance is ru

Re: iOS books, etc for experienced OSX programmers

2013-02-27 Thread Jeffrey Oleander
> From: James Lee > Subject: Re: iOS books, etc for experienced OSX programmers > To: "Koen van der Drift" > Cc: "Cocoa Dev" > Date: Saturday, 2013 February 23, 14:21 > I am looking at Xcode 4 by Fritz Anderson now. I read everything I could get my hands on: Maher Ali _Advanced iOS 4 Programmi

Re: archiving report

2013-02-27 Thread Gerriet M. Denkmann
On 27 Feb 2013, at 02:17, Kyle Sluder wrote: > I understand the frustration caused by Apple's embarrassing penchant for not > fixing bugs. > But refusing to report future bugs is only going to harm yourself. Grudgingly I did: NSKeyedArchiver creates bloated archives. Your tracking number for

Re: Issue of NSStatusBar

2013-02-27 Thread Kyle Sluder
No. Don't do this. The class name might change at any time. Do what I suggested. Check something which is under your control. --Kyle Sluder On Feb 26, 2013, at 10:59 PM, anni saini wrote: > > I got the solution, just need to check for NSStatusBarWindow className as > follows: > if([awindow i

Re: 2 icons showing in dock

2013-02-27 Thread Stephane Sudre
On Wed, Feb 27, 2013 at 9:27 AM, Rick C. wrote: > Hi, > > When a customer adds my app to Login Items in System Preferences it > (sometimes) causes my app to launch showing 2 icons in the dock after a > restart. Only one instance is running (Activity Monitor) and only one icon > shows in Comman

Re: Issue of NSStatusBar

2013-02-27 Thread anni saini
Yeah thats true its Apple-private implementation. However, I'm closing windows only those are visible in my App and I have checked with title, its only closing windows created by my App. I think, a solution as suggested by you "You can either track them by adding and removing them from a list or

2 icons showing in dock

2013-02-27 Thread Rick C.
Hi, When a customer adds my app to Login Items in System Preferences it (sometimes) causes my app to launch showing 2 icons in the dock after a restart. Only one instance is running (Activity Monitor) and only one icon shows in Command-tab. What normally happens is if my app icon is in the do

Re: Programmatic Core Data Migration

2013-02-27 Thread tshanno
Tom, If you find a Core Data based app from somewhere else and look in the package contents you will find the .xcdatamodel file (or .xcdatamodeld if it has multiple versions). If you then look into a .xcdatamaodeld package you see every version of the data model that has shipped with that app.

Re: iOS books, etc for experienced OSX programmers

2013-02-27 Thread James Lee
I am looking at Xcode 4 by Fritz Anderson now. This is not his first effort; he is an established Mac technical writer and this is a good well edited book. Unlike Xcode 3, which was strictly Mac and developed your skills all in one application example, Xcode 4 has both iOS and Mac examples. I li

Re: IOS iPad PopOver Nav bar color

2013-02-27 Thread Izzy Fraimow
Can you point to a screen shot of what your desired effect is, and one that looks like what you're seeing now? If you want something _exactly_ like the Calendar app (http://i.imgur.com/4LG3qU0.png) and that is not what you're getting, you need to populate the popover with a UINavigationControll

Re: [OT] Sync vs ASync Server Comms

2013-02-27 Thread Ten Horses | Diederik Meijer
On iOS sync will freeze your user interface for the duration of the network call, because it is done on the main thread, async is done in the background and keeps the interface responsive, you can then update your data when done Dave schreef op 2013-02-22 11:13: > Hi All, > > I was readin

Re: Problem with NSPersistentStore

2013-02-27 Thread Laurent Daudelin
I took a cue from Apple's own multiple samples. I thought about that and I changed my code to force create the managed object context and the persistent store right when the application has started. Thanks, Mike. Seems we got to the same cause.Í -Laurent. -- Laurent Daudelin AIM/iChat/Skype:La

Re: Issue of NSStatusBar

2013-02-27 Thread Ken Thomases
On Feb 27, 2013, at 12:59 AM, anni saini wrote: > I got the solution, just need to check for NSStatusBarWindow className as > follows: > if([awindow isVisible] && ![aWindow aboutWin] && ![aWindow loginWindow] && > ![[aWindow className] isEqual:@"NSStatusBarWindow"]) You're relying on Apple-priv