Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-14 Thread Vince
While this certainly is a nifty feature (thanks Chris, hadn't known about that yet), it's in no way a replacement for having proper live in-editor previews of your actual interface objects. While it allows you to save a couple of lines of code per object, it at the same time—instead of giving yo

Re: Sandboxing and NSTask

2011-08-14 Thread Scott Ribe
On Aug 14, 2011, at 2:59 PM, Andrew Satori wrote: > When I enable the sandboxing it all goes into the toilet. As far as I can > tell, the NSTask calls are not inheriting the sandbox entitlements and are > there fore failing to be able to have any file IO against the container. I think I'd crea

Re: recomendations for creating a beta with date to expire

2011-08-14 Thread Jerry Krinock
On 2011 Aug 14, at 13:37, Wilker wrote: > You have any other hints for doing this? One more thing. Remember to leave some kind of back door for yourself. I've wanted to punch myself in the nose when I needed to reproduce a bug report and my app told me that it wouldn't launch because it was

Re:Problem printing offscreen PDFViews

2011-08-14 Thread Kevin Bracey
Old follow up to help anyone else who might wish to print PDFs. Having just run into the same problem as Waldo. I found the Apple Sample Code: PDFView a good starting point. While it no longer opens in Xcode 4.2 adding PDFImageView to my project worked fine. By changing the load code to use p

Re: recomendations for creating a beta with date to expire

2011-08-14 Thread Wilker
The network is not a main issue, since my program is useless without network at all. And the idea is to people try it before it launched, in fact it will be an closed beta, I thing I will follow the Nick mind and use local clock just for speed up, anyway the program can be cracked anyway (easier o

Re: recomendations for creating a beta with date to expire

2011-08-14 Thread Gideon King
I agree, and would like to add that I have done this, and did encounter an issue where people had an expired beta and therefore couldn't use the program until they had downloaded an update, and were annoyed by that - especially if they were on the road and had no internet connection. Although I

Re: recomendations for creating a beta with date to expire

2011-08-14 Thread Nick Zitzmann
On Aug 14, 2011, at 2:37 PM, Wilker wrote: > Hi Guys, > > I'm thinking about releasing a beta version of my software. Im thinking > about use the same strategy as Reeder for Mac did, betas with fixed time to > expire. > > What you recommendations to make it safer? Im thinking about do an intern

Re: Sandboxing and NSTask

2011-08-14 Thread Kyle Sluder
I believe the recommended advice would be to move to XPC services, which can be separately entitled. But all of your apps should automatically receive permission for ~/Library/Application Support/$COMPANY_NAME. We recently had to update OmniGraffle to look in ~/Library/Application Support/The O

Save panel exception: "parentForItemsInColumn: is not supported for browsers with matrix delegates"

2011-08-14 Thread Gideon King
Hi, I have the following code to run a save panel: NSSavePanel *sp = [NSSavePanel savePanel]; [sp setExtensionHidden:NO]; [sp setTitle:NSLocalizedString(@"Export image to PNG file", @"")]; [sp setRequiredFileType:@"png"]; [sp setAccessoryView:bitmap

Sandboxing and NSTask

2011-08-14 Thread Andrew Satori
Having spent the weekend trying to migrate to supporting sandboxing, I think I have hit a snag that may well be terminal. The situation: My application contains a bundle that embeds a set of programs (a local instance of the PostgreSQL RDMS). Outside of the sandbox, it properly creates the

recomendations for creating a beta with date to expire

2011-08-14 Thread Wilker
Hi Guys, I'm thinking about releasing a beta version of my software. Im thinking about use the same strategy as Reeder for Mac did, betas with fixed time to expire. What you recommendations to make it safer? Im thinking about do an internet request do get a world clock, and check with this time t

Re: File Copy With Progress?

2011-08-14 Thread Seth Willits
On Aug 12, 2011, at 3:03 PM, Charles Srstka wrote: > You could use the copyfile() API. It’s not Cocoa, but it might be a little > cleaner than FSCopyObjectAsync. It appears copyfile() doesn't give progress callbacks during a single file's copy? FSPathCopyObjectAsync isn't too bad. I wrote a w

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-14 Thread Chris Hanson
If you're targeting Mac OS X 10.6 or later, you can set arbitrary properties on your objects in Interface Builder that will be set via KVC at nib load time. These are called "User Defined Runtime Attributes" and are specified in the Identity Inspector right under the place where you can set an o

Re: Cocoa-dev Digest, Vol 8, Issue 619

2011-08-14 Thread Sanford Selznick
> On 8 Aug 2011, at 11:28 AM, Sean McBride wrote: > >> Sandboxing, IMNSHO, is still half-baked. Note that on Lion, only TextEdit >> and Preview have it enabled. That should tell you something. I tried with >> my app, and hit bug after bug. In addition to limitation after limitation. > > Ah.

Re: File Copy With Progress?

2011-08-14 Thread Andy Lee
On Aug 14, 2011, at 11:22 AM, Leo wrote: > Well there's also another convoluted way - but I think it will copy all the > attributes: calling 'ditto' with NSTask and reading its progress in the > background (actually it's quite easy because there's an example somewhere on > Apple's site how to do

Re: File Copy With Progress?

2011-08-14 Thread Leo
On 8/14/11 3:37:07 AM, Charles Srstka wrote: On Aug 14, 2011, at 1:41 AM, Jens Alfke wrote: On Aug 13, 2011, at 12:27 PM, Leo wrote: You can also use libcurl which supports the 'file' protocol along with ftp, http, etc. It's also not Cocoa, but easy to use and there's also its Cocoa wrapper C

Re: Properly wrapping non-contiguous NSTextViews

2011-08-14 Thread Ross Carter
On Aug 13, 2011, at 3:24 PM, Nick Zitzmann wrote: > Each text view represents one page of text. None of the text views are > embedded in individual scroll views, though all of the text views are > subviews of a view that is in a scroll view. Think like a word processing app > that shows multipl

Re: xCode 4 and integrated IB

2011-08-14 Thread Roland King
Change the version of the nib (which is in one of the inspector panels) to something lower than it is, i.e. tell Xcode they are old NIBs. On Aug 14, 2011, at 4:52 PM, Peter Hudson wrote: > I have an app with a large number of nib files. > These have all worked very happily in xCode 3 - and func

xCode 4 and integrated IB

2011-08-14 Thread Peter Hudson
I have an app with a large number of nib files. These have all worked very happily in xCode 3 - and function perfectly at run time. Interface Builder with xCode 3 has never produced any warnings in relation to these nib files. When I build the same project in xCode 4 I get a huge number of warn

Re: Properly wrapping non-contiguous NSTextViews

2011-08-14 Thread Martin Wierschin
I think Ross's confusion stems from your statement that: >>> There is one NSLayoutManager and one NSTextStorage behind each text view You make it sound as if a single NSTextView is responsible for completely showing all the text in each NSTextStorage. In other words, that each of your NSLayoutM

Re: File Copy With Progress?

2011-08-14 Thread Charles Srstka
On Aug 14, 2011, at 1:41 AM, Jens Alfke wrote: > > On Aug 13, 2011, at 12:27 PM, Leo wrote: > >> You can also use libcurl which supports the 'file' protocol along with ftp, >> http, etc. It's also not Cocoa, but easy to use and there's also its Cocoa >> wrapper CURLHandle (I'm not sure if they

Re: Difficulty getting full screen window support in Lion fully working

2011-08-14 Thread Lee Ann Rucker
Download the 10.7 version of the Sketch sample app - it's the one they showed at WWDC. It uses the window delegate methods to customize the transition. The default fullscreen transition gives you a fixed-size window that covers the whole screen; Sketch customizes it to give you a resizable one.