Re: Using a document bundle file type with core data

2013-01-16 Thread Eric Gorr
Thank you! I will take a closer look at that soon. If you have a quick answer as to how I can have the -fileWrapperOfType:error: method be called, I would be interested. On Jan 16, 2013, at 10:38 PM, David Brittain wrote: > The code in this blog article enables saving core data files to a pac

Re: Using a document bundle file type with core data

2013-01-16 Thread David Brittain
The code in this blog article enables saving core data files to a package: http://cutecoder.org/featured/asynchronous-core-data-document/ Take a look at the writeSafelyToURL implementation in the gist at the bottom. I haven't tried saving to a bundle myself, but found the article helped me solve

Using a document bundle file type with core data

2013-01-16 Thread Eric Gorr
I've got a sample project at: http://ericgorr.net/cocoadev/docbundleCD.zip Basically, what I am attempting to do should be fairly standard and simple, but I am apparently missing something obvious. I only want to be able to define my document type as a document bundle and place a Core Data file

Re: book for n00b

2013-01-16 Thread Charles Srstka
On Jan 16, 2013, at 2:33 PM, Richard Somers wrote: > On Jan 16, 2013, at 11:14 AM, Scott Ribe wrote: > >> I know someone who's developed an interest in developing for Mac. No >> programming experience, some HTML, so classic newbie. >> >> Would Hillegass' book still be the best intro? > > No

Re: Changing color in NSColorPanel without message

2013-01-16 Thread Melvin Walker
On Jan 16, 2013, at 4:45 PM, Andy Lee wrote: > On Jan 16, 2013, at 6:09 PM, Melvin Walker wrote: > [...] >>> When you select a color in the panel, NSColorPanel sends a changeColor: >>> message to the first responder. It also sends its action message (set by >>> setAction:) to its target object

Re: Changing color in NSColorPanel without message

2013-01-16 Thread Andy Lee
On Jan 16, 2013, at 6:09 PM, Melvin Walker wrote: [...] >> When you select a color in the panel, NSColorPanel sends a changeColor: >> message to the first responder. It also sends its action message (set by >> setAction:) to its target object (set by setTarget:), provided that neither >> the ac

Re: Changing color in NSColorPanel without message

2013-01-16 Thread Melvin Walker
On Jan 16, 2013, at 2:05 PM, cocoa-dev-requ...@lists.apple.com wrote: > On 16 Jan 2013, at 20:47, Melvin Walker wrote: > >> Is it possible to programmatically change color (using -setColor:) in >> NSColorPanel without it sending a changeColor: message to the first >> responder? >> >> We'd like

Re: Override runModalSavePanelForSaveOperation

2013-01-16 Thread Eric Gorr
Sent from my iPhone On Jan 16, 2013, at 5:05 PM, Quincey Morris wrote: > On Jan 16, 2013, at 13:36 , Eric Gorr wrote: > >> I need to override runModalSavePanelForSaveOperation in NSDocument to >> provide some custom behavior. > > I'd suggest you keep trying to find a way to avoid doing th

Re: Override runModalSavePanelForSaveOperation

2013-01-16 Thread Quincey Morris
On Jan 16, 2013, at 14:05 , Quincey Morris wrote: > On Jan 16, 2013, at 13:36 , Eric Gorr wrote: > >> (I am also wondering how to properly handle the process to "make sure that >> any editor registered using the Cocoa Bindings NSEditorRegistration informal >> protocol has committed its chang

Re: Override runModalSavePanelForSaveOperation

2013-01-16 Thread Quincey Morris
On Jan 16, 2013, at 13:36 , Eric Gorr wrote: > I need to override runModalSavePanelForSaveOperation in NSDocument to provide > some custom behavior. I'd suggest you keep trying to find a way to avoid doing this. Even inconveniences like having to work through an extra dialog before or after th

Re: Changing color in NSColorPanel without message

2013-01-16 Thread jonat...@mugginsoft.com
On 16 Jan 2013, at 20:47, Melvin Walker wrote: > Is it possible to programmatically change color (using -setColor:) in > NSColorPanel without it sending a changeColor: message to the first responder? > > We'd like it to just reflect a color change without telling the responder > chain about it

Override runModalSavePanelForSaveOperation

2013-01-16 Thread Eric Gorr
I need to override runModalSavePanelForSaveOperation in NSDocument to provide some custom behavior. According to the description in the documentation, one needs to call saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo: which I am doing. However, my writeToURL:ofType:forSa

Re: Provisioning profiles

2013-01-16 Thread Alex Zavatone
Keychain services. Got it. Sent from my iPad ___ 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/Up

Re: book for n00b

2013-01-16 Thread Koen van der Drift
On Wed, Jan 16, 2013 at 3:02 PM, Steve Mills wrote: > On Jan 16, 2013, at 13:54:03, Laurent Daudelin > wrote: > >> If the guy doesn't have any programming experience, I would strongly >> recommend he gets some basic programming training. I'm not sure books on >> Objective-C books will help non

Changing color in NSColorPanel without message

2013-01-16 Thread Melvin Walker
Is it possible to programmatically change color (using -setColor:) in NSColorPanel without it sending a changeColor: message to the first responder? We'd like it to just reflect a color change without telling the responder chain about it. -- Melvin Walker

Re: 14799 expected memory Leaks in Cocoa.framework?

2013-01-16 Thread Jens Alfke
On Jan 15, 2013, at 1:30 PM, Warren Postma wrote: > I have used memory-profiler tools on other platforms and languages, and > most have a concept of "registering expected memory leaks". I haven't seen > any indication that Instruments knows that Cocoa.framework has expected > memory leaks The

Re: book for n00b

2013-01-16 Thread Richard Somers
On Jan 16, 2013, at 11:14 AM, Scott Ribe wrote: > I know someone who's developed an interest in developing for Mac. No > programming experience, some HTML, so classic newbie. > > Would Hillegass' book still be the best intro? No that will not work. Hillegass's book assumes that you already hav

Re: book for n00b

2013-01-16 Thread Michael de Haan
As far as I recall , yes >From Seattle On Jan 16, 2013, at 12:23 PM, Laurent Daudelin wrote: > > On Jan 16, 2013, at 12:11, Michael de Haan wrote: > >> On Jan 16, 2013, at 11:54 AM, Laurent Daudelin >> wrote: >> >>> If the guy doesn't have any programming experience, I would strongly >>

Re: book for n00b

2013-01-16 Thread Laurent Daudelin
On Jan 16, 2013, at 12:11, Michael de Haan wrote: > On Jan 16, 2013, at 11:54 AM, Laurent Daudelin > wrote: > >> If the guy doesn't have any programming experience, I would strongly >> recommend he gets some basic programming training. I'm not sure books on >> Objective-C books will help no

Re: book for n00b

2013-01-16 Thread Michael de Haan
On Jan 16, 2013, at 11:54 AM, Laurent Daudelin wrote: > If the guy doesn't have any programming experience, I would strongly > recommend he gets some basic programming training. I'm not sure books on > Objective-C books will help non-programmers. > > -Laurent. > -- > Kochan does a really g

Re: book for n00b

2013-01-16 Thread Steve Mills
On Jan 16, 2013, at 13:54:03, Laurent Daudelin wrote: > If the guy doesn't have any programming experience, I would strongly > recommend he gets some basic programming training. I'm not sure books on > Objective-C books will help non-programmers. Right. You need to learn about loops and logic

Re: book for n00b

2013-01-16 Thread Laurent Daudelin
If the guy doesn't have any programming experience, I would strongly recommend he gets some basic programming training. I'm not sure books on Objective-C books will help non-programmers. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.ne

Re: book for n00b

2013-01-16 Thread Erik Stainsby
I'd also recommend Scott Stevenson's "Cocoa and Objective-C: Up and Running" and follow that with Stephen G. Kochan's Programming in Objective-C" $0.02 Sent from my iCapsule somewhere in orbit On 2013-01-16, at 10:14 AM, Scott Ribe wrote: > I know someone who's developed an interest in deve

Re: book for n00b

2013-01-16 Thread Eric Gorr
That would be my recommendation. On Jan 16, 2013, at 1:14 PM, Scott Ribe wrote: > I know someone who's developed an interest in developing for Mac. No > programming experience, some HTML, so classic newbie. > > Would Hillegass' book still be the best intro? > > -- > Scott Ribe > scott_r...@e

Re: book for n00b

2013-01-16 Thread T.J. Usiyan
I would suggest starting with this book by Aaron Hillegass : Objective-C Programming: The Big Nerd Ranch Guide. An alternative is Stephen Kochan's Programming Objective C

book for n00b

2013-01-16 Thread Scott Ribe
I know someone who's developed an interest in developing for Mac. No programming experience, some HTML, so classic newbie. Would Hillegass' book still be the best intro? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice

Re: NSString and file system Re: AppleScript in Sandboxed App

2013-01-16 Thread Quincey Morris
On Jan 16, 2013, at 09:12 , "jonat...@mugginsoft.com" wrote: > To be honest I rarely remember to call -fileSystemRepresentation. > The docs seem to indicate that its only purpose is to replace abstract / and > . characters with OS equivalents. > On OS X this would have seem to have no net resul

Re: NSString and file system Re: AppleScript in Sandboxed App

2013-01-16 Thread jonat...@mugginsoft.com
On 16 Jan 2013, at 15:50, Fritz Anderson wrote: > On 16 Jan 2013, at 3:52 AM, "jonat...@mugginsoft.com" > wrote: > >> Py_SetProgramName((char *)[[scriptRunner launchPath] UTF8String]); > > If a char* is destined for the file system, you should be using > -fileSystemRepresentation, not

Provisioning profiles

2013-01-16 Thread Alex Zavatone
Don't know if this is the right place to ask, but after going over the available docs, I am still at a loss and I feel that discussing the topic here may be of use to the community as a whole. When an iOS app is installed, I know that there is an embedded.mobileprovision provisioning profile wi

Custom View drawRect method is not invoked when use with AutoLayout

2013-01-16 Thread Sasikumar JP
Hi, I am working on a project, where i have to create horizontal tableview with custom tableview cell. i am using AutoLayout constraints to layout all cell's subview elements. Here is the my tableview cell init method, here i am using JPFilmBorderView to draw some custom drawing. but JPFilmBorde

NSString and file system Re: AppleScript in Sandboxed App

2013-01-16 Thread Fritz Anderson
On 16 Jan 2013, at 3:52 AM, "jonat...@mugginsoft.com" wrote: > Py_SetProgramName((char *)[[scriptRunner launchPath] UTF8String]); If a char* is destined for the file system, you should be using -fileSystemRepresentation, not -UTF8String. I forget that all the time. — F -- Fri

Re: How do I implement the container view which represent the thumbnail of video having variable cell sizes?

2013-01-16 Thread jonat...@mugginsoft.com
On 16 Jan 2013, at 11:39, Muthulingam Ammaiappan wrote: > Hi friends, > > i am developing cocoa application on mac os x, which will allows the user > to import the video clips and make the movie from those video clips.here i > need to deal with highly customized view(please refer the attac

How do I implement the container view which represent the thumbnail of video having variable cell sizes?

2013-01-16 Thread Muthulingam Ammaiappan
Hi friends, i am developing cocoa application on mac os x, which will allows the user to import the video clips and make the movie from those video clips.here i need to deal with highly customized view(please refer the attachment)... *my requirement is:* ->>moment user add the video clip it

Re: AppleScript in Sandboxed App

2013-01-16 Thread jonat...@mugginsoft.com
On 16 Jan 2013, at 03:44, John Nairn wrote: > Thanks. I watched the one on "Seccure Automation Techniques in OS X." Near > the end it said exactly what I wanted to hear which is that application-run > scripts that target only themselves have no restrictions. So far it is half > true in my app

Re: 14799 expected memory Leaks in Cocoa.framework?

2013-01-16 Thread Ken Thomases
On Jan 15, 2013, at 3:30 PM, Warren Postma wrote: > I have used memory-profiler tools on other platforms and languages, and > most have a concept of "registering expected memory leaks". I haven't seen > any indication that Instruments knows that Cocoa.framework has expected > memory leaks, nor an

Help - EXC_CRASH (SIGABRT)

2013-01-16 Thread Jesse Owens II
Greetings, Im currently building an app that works fine on my phone (iOS 6, iPhone 4), however when I try to distribute (ad-hoc) my application to beta testers the app crashes on the launch screen. I've attached the crash logs for your reference. Any feedback on this matter would be greatly app

14799 expected memory Leaks in Cocoa.framework?

2013-01-16 Thread Warren Postma
I have used memory-profiler tools on other platforms and languages, and most have a concept of "registering expected memory leaks". I haven't seen any indication that Instruments knows that Cocoa.framework has expected memory leaks, nor any way to force those expected memory leaks to be cleaned up