Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Gerriet M. Denkmann
On 26 Oct 2012, at 01:11, Seth Willits wrote: > On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: > >> This works, but I have a strong feeling that there is a very obvious better >> solution which I somehow cannot see. > > > There actually isn't an obvious solution. Strange. I though

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Kyle Sluder
On Oct 26, 2012, at 1:52 AM, "Gerriet M. Denkmann" wrote: > > On 26 Oct 2012, at 01:11, Seth Willits wrote: > >> On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: >> >>> This works, but I have a strong feeling that there is a very obvious better >>> solution which I somehow cannot see.

Saving with Encoding

2012-10-26 Thread Gerriet M. Denkmann
My NSDocument subclass overrides fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error: and returns: CharacterEncoding = 2147484701; ← Thai (Windows, DOS) DocumentType = NSPlainText; UTI = "public.plain-text"; When I open the file again I get in readFromURL:of

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Gerriet M. Denkmann
On 26 Oct 2012, at 16:11, Kyle Sluder wrote: > On Oct 26, 2012, at 1:52 AM, "Gerriet M. Denkmann" > wrote: > >> >> On 26 Oct 2012, at 01:11, Seth Willits wrote: >> >>> On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: >>> This works, but I have a strong feeling that there is a

Need faster approach to load data in NSTableView from a file

2012-10-26 Thread Abhijeet Singh
Hi,In my application I am reading data from a text file and displaying it in NSTableView. There are 6 columns in my tableview. My problem is when the records in file are more it takes too long to read and display the data. e.g. It takes around 1 min to read and display 70,000 records from the fi

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Chuck Soper
On 10/25/12 10:28 PM, "Martin Hewitson" wrote: >On Oct 26, 2012, at 6:04 AM, Graham Cox wrote: > >> >> On 26/10/2012, at 8:24 AM, Jayson Adams wrote: >> >>> The catch is that the lovely folks at the MAS will not actually >>>approve any app that uses these special entitlements. And helpfully,

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Mike Abdullah
On 26 Oct 2012, at 10:55, "Gerriet M. Denkmann" wrote: > > On 26 Oct 2012, at 16:11, Kyle Sluder wrote: > >> On Oct 26, 2012, at 1:52 AM, "Gerriet M. Denkmann" >> wrote: >> >>> >>> On 26 Oct 2012, at 01:11, Seth Willits wrote: >>> On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wr

Re: Need faster approach to load data in NSTableView from a file

2012-10-26 Thread Mike Abdullah
What have you tried? You have a performance problem. The very first thing that should ever be done if you have a performance problem is head over to Instruments and find out what is slow and why. And please don't crosspost between lists. On 26 Oct 2012, at 12:17, Abhijeet Singh wrote: > Hi,I

Re: Open untitled file in Document-based app

2012-10-26 Thread Sean McBride
On Wed, 24 Oct 2012 22:26:59 +0200, ecir hana said: >> That restoring state stuff is new in 10.7, not 10.8. You can test if it >> is responsible by turning it off in System Preferences > General. >> >> >Yes, it is! When I turn it off (Close windows when quitting an application) >it works as befor

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Sean McBride
On Thu, 25 Oct 2012 21:23:36 -0700, Seth Willits said: >> The communication between the MAS staff and developers is absolutely >shocking. I would go as far as to say it's the worst I've experienced >from Apple since I first had dealings with them in the mid 80s. They >come across as arrogant, "job

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Martin Hewitson
I have now. Thanks for the link! Martin On 26, Oct, 2012, at 03:37 PM, Chuck Soper wrote: > On 10/25/12 10:28 PM, "Martin Hewitson" wrote: > >> On Oct 26, 2012, at 6:04 AM, Graham Cox wrote: >> >>> >>> On 26/10/2012, at 8:24 AM, Jayson Adams wrote: >>> The catch is that the lovely f

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Martin Hewitson
On 26, Oct, 2012, at 05:05 PM, Sean McBride wrote: > On Thu, 25 Oct 2012 21:23:36 -0700, Seth Willits said: > >>> The communication between the MAS staff and developers is absolutely >> shocking. I would go as far as to say it's the worst I've experienced >> from Apple since I first had dealing

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Alex Zavatone
On Oct 26, 2012, at 11:13 AM, Martin Hewitson wrote: > > On 26, Oct, 2012, at 05:05 PM, Sean McBride wrote: > >> On Thu, 25 Oct 2012 21:23:36 -0700, Seth Willits said: >> The communication between the MAS staff and developers is absolutely >>> shocking. I would go as far as to say it's t

Re: Binding InfoPanel to currentDocument

2012-10-26 Thread Kyle Sluder
On Oct 26, 2012, at 6:52 AM, Mike Abdullah wrote: >> Yes. I saw that in your previous post. But I asked both AppKiDo and Xcode >> and nobody showed me any documentation about this accessor. >> So I am wary of using undocumented stuff. > > It's actually a method on NSWindowController. My apolo

Re: Keyboard shortcut for menu item with submenu?

2012-10-26 Thread Eric Schlegel
On Oct 25, 2012, at 9:59 PM, Jerry Krinock wrote: > Is there any way to assign a keyboard shortcut to a menu item that has a > submenu? The idea is that you hit the keyboard shortcut to select the > submenu, then use the arrow keys to navigate through the submenu. The > submenu may be popul

Re: Need faster approach to load data in NSTableView from a file

2012-10-26 Thread Keary Suska
Also, using a datasource instead of bindings I find to be much more performant, especially with particularly large data sets. KVO is surprisingly (or not so surprisingly) heavy. But as Mike pointed out, some basic profiling will tell you why you are experiencing the slowness... On Oct 26, 2012,

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Martin Hewitson
So, the story's not over. I resubmitted and the app was reviewed quickly, but rejected again with the same rejection note. So, what now? Not sure how to figure out my error, other than to pay for DTS... Martin On 26, Oct, 2012, at 05:13 PM, Martin Hewitson wrote: > > On 26, Oct, 2012, at

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Martin Hewitson
Just some more info, in case it triggers ideas. I use these entries in my entitlements file: com.apple.security.temporary-exception.apple-events com.apple.mail com.apple.security.scripting-targets com.apple.mail com.apple.mail.compose with the aim of composing emails on 10.8,

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-26 Thread Quincey Morris
On Oct 26, 2012, at 22:58 , Martin Hewitson wrote: > Am I doing something wrong here in principle? I confess I can't find mention > of these entitlements anywhere on google, nor in the apple documentation. So > I can't reconstruct where I got this from. Have you being following the 'Code signi