Sandboxing and file references

2011-09-19 Thread Peter N Lewis
Questions: * When the user opens/drags a file to me application, is the explicit entitlement to read that file that I'm granted permanent? Will it remain across launch/reboots? * How do I deal with files that I already have a reference to if I enable sandboxing in a future version? * What ha

Find panel problems

2011-09-19 Thread Ryan Joseph
Maybe I'm not understanding how the system works (where are the find panel docs anyways?) but I simply have an NSTextView with setUsesFindPanel enabled and when I open the find panel (from the standard menu item) all the buttons have been disabled suggesting the NSTextView isn't responding. The

Re: NSArrayController and NSTableView

2011-09-19 Thread Keary Suska
On Sep 19, 2011, at 6:00 PM, R wrote: > I find that in order for my NSTableView to update when bound to an > NSArrayController, I have to add objects to the array vis the > NSArrayController. This works great if the window, tableview, and > arraycontroller are all part of the same class. > > Que

Re: NSArrayController and NSTableView

2011-09-19 Thread Jens Alfke
On Sep 19, 2011, at 5:00 PM, R wrote: > This works great if the window, tableview, and arraycontroller are all part > of the same class. I don’t understand what you mean by “same class" — those are three different classes. Do you mean "the same xib file"? —Jens smime.p7s Description: S/MIME

NSArrayController and NSTableView

2011-09-19 Thread R
I find that in order for my NSTableView to update when bound to an NSArrayController, I have to add objects to the array vis the NSArrayController. This works great if the window, tableview, and arraycontroller are all part of the same class. Question: Can I have a tableView in one class, bound

Re: How to get the exact location and range for an Attachment present in NSTextView

2011-09-19 Thread Graham Cox
I haven't tried, but off the top of my head it looks like a candidate for using: [NSAttributedString enumerateAttribute:inRange:options:usingBlock:] with NSAttachmentAttributeName as the attribute. --Graham On 20/09/2011, at 5:23 AM, Sandeep Mohan Bhandarkar wrote: > Hi All, > > Can anyone

Re: iOS App Ready to Upload ???

2011-09-19 Thread Graham Cox
On 19/09/2011, at 9:14 PM, John Love wrote: > Anyway, still CodeSign Error > > It's crunch time and I really, really am raising a big HELP flag. This is almost certainly the wrong list to be asking (plus you'll get rapped for cross posting). But I suggest you go through all the instructions

Re: ARC and NSFastEnumeration

2011-09-19 Thread Greg Parker
On Sep 19, 2011, at 3:33 AM, Devraj Mukherjee wrote: > I am trying to implement fast enumeration for a wrapper object that > has an NSArray, following this tutorial > http://cocoawithlove.com/2008/05/implementing-countbyenumeratingwithstat.html > > Obviously ARC doesn't like the way > > - (NSUInt

How to get the exact location and range for an Attachment present in NSTextView

2011-09-19 Thread Sandeep Mohan Bhandarkar
Hi All, Can anyone tell me if it is possible to get the exact range and location of an attachment present in a NSTextView. Here is what i am looking for 1) Attach images, Documents inline in a NSTextView using NSAttributedString. 2) Get the exact location for the Attachment in the entire text vi

Re: Cannot quit TextEdit

2011-09-19 Thread Kyle Sluder
On Mon, Sep 19, 2011 at 11:14 AM, Gerriet M. Denkmann wrote: > Open in TextEdit (rtf or plain should make no difference). > Open in Xcode, modify and quit. > Modify in TextEdit and try to quit. Hmm. On my 10.7.2 installation, when I switched back to TextEdit, it did not reflect the modifications

Re: Cannot quit TextEdit

2011-09-19 Thread Boyd Collier
I just tried going through the sequence of steps that you described and also couldn't quit TextEdit. Along the way, I got several possibly revealing messages, one of which read "The operation couldn't be completed. (GSLibraryErrorDomain error 1." and one that read "The document 'A.txt' is on a

Re: Cannot quit TextEdit

2011-09-19 Thread Gerriet M. Denkmann
On 20 Sep 2011, at 01:02, Kyle Sluder wrote: > On Mon, Sep 19, 2011 at 10:56 AM, Gerriet M. Denkmann > wrote: >> A partition on my internal disk. The filesystem is HFS+, case sensitive, >> journaled. >> >> Can you reproduce this behaviour? > > Nope, but to be certain, we'd need much more expl

Re: How to do Save As... in Lion

2011-09-19 Thread Kyle Sluder
On Mon, Sep 19, 2011 at 3:22 AM, Ulf Dunkel wrote: > Hi Gerriet. > >> The previous version just used Utf-8 when the current encoding was not >> good enough. >> But now I have decided to give uses a choice of applicable encodings. > > So you decided to make the user stop to think about encodings. W

Re: Cannot quit TextEdit

2011-09-19 Thread Kyle Sluder
On Mon, Sep 19, 2011 at 10:56 AM, Gerriet M. Denkmann wrote: > A partition on my internal disk. The filesystem is HFS+, case sensitive, > journaled. > > Can you reproduce this behaviour? Nope, but to be certain, we'd need much more explicit repro steps. I opened a previously-saved RTF document

Re: Cannot quit TextEdit

2011-09-19 Thread Gerriet M. Denkmann
On 20 Sep 2011, at 00:47, Kyle Sluder wrote: > On Mon, Sep 19, 2011 at 10:44 AM, Gerriet M. Denkmann > wrote: >> But I just replaced "some other editor" with Xcode, and again the same >> behaviour: I had to Force Quit TextEdit. >> >> So: where is the bug? In Xcode, in TextEdit or in Lion? > >

Re: Cannot quit TextEdit

2011-09-19 Thread Kyle Sluder
On Mon, Sep 19, 2011 at 10:44 AM, Gerriet M. Denkmann wrote: > But I just replaced "some other editor" with Xcode, and again the same > behaviour: I had to Force Quit TextEdit. > > So: where is the bug? In Xcode, in TextEdit or in Lion? Interesting. What kind of volume are you saving on? Intern

Re: How to do Save As... in Lion

2011-09-19 Thread Bayes Scott F
If there is one "master" stringEncoding, then perhaps an Export… item would make sense. No need to proliferate windows, etc. ScottB (noob to the list, not to the Mac or OS X dev) On Sep 17, 2011, at 19:59, Gerriet M. Denkmann wrote: > My app had (before Lion) a Menu Item Save As... which brough

Re: Cannot quit TextEdit

2011-09-19 Thread Gerriet M. Denkmann
On 20 Sep 2011, at 00:18, Kyle Sluder wrote: > On Mon, Sep 19, 2011 at 9:25 AM, Gerriet M. Denkmann > wrote: >> I have a document called "A" which contains the string "A". >> >> I open "A" in TextEdit. >> I open "A" in some other editor, change the text to "AX" and quit the other >> editor. >>

Re: Cannot quit TextEdit

2011-09-19 Thread Kyle Sluder
On Mon, Sep 19, 2011 at 9:25 AM, Gerriet M. Denkmann wrote: > I have a document called "A" which contains the string "A". > > I open "A" in TextEdit. > I open "A" in some other editor, change the text to "AX" and quit the other > editor. > > I change the text in TextEdit to "AA" and try to quit T

Cannot quit TextEdit

2011-09-19 Thread Gerriet M. Denkmann
I have a document called "A" which contains the string "A". I open "A" in TextEdit. I open "A" in some other editor, change the text to "AX" and quit the other editor. I change the text in TextEdit to "AA" and try to quit TextEdit - but I cannot. Several sheets come up, telling me strange thing

iOS App Ready to Upload ???

2011-09-19 Thread John Love
Finally, wrapped up my iOS app sand then proceeded to use iTC to upload to App Store for review. Using iTC, I see the status "Waiting for upload". So I start Application Loader and the Loader allows me to select the application. Then, I click "Choose" and my actual app is dimmed in the Finder

Re: ARC and NSFastEnumeration

2011-09-19 Thread Graham Cox
If it has an NSArray, you don't have to follow that tutorial - NSArray already implements NSFastEnumeration, so your wrapper can simply call the same methods on NSArray. Job done. The tutorial is somewhat artificial in that it creates an object using a C array (and secondly a linked list) as it

ARC and NSFastEnumeration

2011-09-19 Thread Devraj Mukherjee
Hi all, I am trying to implement fast enumeration for a wrapper object that has an NSArray, following this tutorial http://cocoawithlove.com/2008/05/implementing-countbyenumeratingwithstat.html Obviously ARC doesn't like the way - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *

Re: How to do Save As... in Lion

2011-09-19 Thread Ulf Dunkel
Hi Gerriet. The previous version just used Utf-8 when the current encoding was not good enough. But now I have decided to give uses a choice of applicable encodings. So you decided to make the user stop to think about encodings. Why? As a user I would be glad if I hadn't even to worry about