Further experiments show that some disks can be ejected under sandbox,
while others cannot. For example, CD, USB sticks, DMGs and some
external drives can be ejected/unmounted, while other external drives
and internal partitions cannot. The rule isn't that simple and seems
to have many exceptions.
On Aug 12, 2013, at 9:21 PM, Kyle Sluder wrote:
> Have you not come across NSURLConnection in your assuredly exhaustive Google
> search?
Yep, right after I posted … !
-koko
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
Have you not come across NSURLConnection in your assuredly exhaustive Google
search?
--Kyle Sluder
(Sent from the road)
On Aug 12, 2013, at 8:12 PM, koko wrote:
>
> I want to get a file from a server into my iPad App.
>
> If I do http://... it launches Safari.
>
> I just want the file … wha
I want to get a file from a server into my iPad App.
If I do http://... it launches Safari.
I just want the file … what is the proper way to do this?
-koko
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
On Aug 12, 2013, at 21:42:10, Kyle Sluder
wrote:
> Are you using NSDocument? If so, return YES from
> +canConcurrentlyReadDocumentsOfType: to let NSDocumentController know it can
> initialize your document in the background. Then it will call
> -makeWindowControllers on the main thread.
>
>
On Aug 12, 2013, at 4:27 PM, "Mills, Steve" wrote:
> I haven't been able to find any info about this, but I might be searching for
> the wrong thing. How can we get rid of the Open dlog so it doesn't hang
> around while the document is being read? It's an incredibly annoying design.
Are you us
Steve,
Can you run an NSOpenPanel with a completion handler block, and in that block,
call a method on a background thread to actually perform the file read
operation?
As a test, I put this together. I called the selectAFile method and chose a 4GB
text file. The open panel was dismissed after
I haven't been able to find any info about this, but I might be searching for
the wrong thing. How can we get rid of the Open dlog so it doesn't hang around
while the document is being read? It's an incredibly annoying design.
Steve via iPad
___
Coco
On Mon, Aug 12, 2013, at 01:44 PM, Gordon Apple wrote:
> Is there some reason why some classes, such as NSTextView, don¹t declare
> IBAction in their actions?
Possibly because they predate IBAction? IB used to just look for methods
that took an id argument and returned void.
> I¹ve taken to re-de
Is there some reason why some classes, such as NSTextView, don¹t declare
IBAction in their actions? I¹ve taken to re-declaring such in subclasses,
which works, but results in compiler warnings about unimplemented methods.
Without that, you can¹t connect, say, a menu, in IB. You can use a binding,
Le 12 août 2013 à 22:22, Kyle Sluder a écrit :
> On Mon, Aug 12, 2013, at 01:11 PM, Jens Alfke wrote:
>>
>> On Aug 12, 2013, at 12:31 PM, Graham Cox wrote:
>>
>>> XCode then refuses to build because the header file mod date no longer
>>> matches what was used when the precompiled headers wer
On Mon, Aug 12, 2013, at 01:11 PM, Jens Alfke wrote:
>
> On Aug 12, 2013, at 12:31 PM, Graham Cox wrote:
>
> > XCode then refuses to build because the header file mod date no longer
> > matches what was used when the precompiled headers were built.
>
> Really?! Precompiled headers are automati
On Mon, Aug 12, 2013, at 12:44 PM, Greg Parker wrote:
> Did you file a bug report?
I have. , marked as a dupe of
.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list
On Aug 12, 2013, at 12:31 PM, Graham Cox wrote:
> XCode then refuses to build because the header file mod date no longer
> matches what was used when the precompiled headers were built.
Really?! Precompiled headers are automatically regenerated if any of the
headers have been touched. There s
I've come up with a couple of reasonably straight-forward solutions to my
problem, but first, thanks to everyone who offered suggestions. Even though I
didn't choose to use them, your willingness to make them is definitely
appreciated.
Here are my solutions (note that there are 2, one labelled
On Aug 12, 2013, at 14:31:23, Graham Cox wrote:
> You open a system header from the SDK into XCode, and due to muscle-memory,
> absent-mindedness, reflex, lack of context or whatever, you hit cmd-S and
> save it over the old header (even if it hasn't actually been changed). XCode
> then refuse
Il giorno 12/ago/2013, alle ore 21:31, Graham Cox ha
scritto:
>
> If anyone could let me have a copy of NSEvent.h from the XCode 4.6.2 10.8 SDK
> with the mod date 10/4/2013 12:53AM that would save my sanity and my few
> remaining hairs - thanks!
>
if you haven't edited the file content, ca
On Aug 12, 2013, at 12:31 PM, Graham Cox wrote:
> Given that the SDK is embedded in the app, why on earth is it even allowed to
> overwrite a file there? Why do the permissions allow writing? Mysteries,
> mysteries... in the meantime I will have lost half a day's productivity just
> putting thi
Has anyone else run into this?
You open a system header from the SDK into XCode, and due to muscle-memory,
absent-mindedness, reflex, lack of context or whatever, you hit cmd-S and save
it over the old header (even if it hasn't actually been changed). XCode then
refuses to build because the hea
Thanks for all the input. I solved it by using a straightforward C-array,
which I think also circumvents the scenario that Conrad describes about the
crash being caused by index 3 being set before index 2.
As it turns out, the time for the whole loop *decreased* by 5-10 fold by using
a dispatc
On Aug 12, 2013, at 11:23 AM, Koen van der Drift
wrote:
>
> On Aug 12, 2013, at 2:05 PM, Jens Alfke wrote:
>
>> NSMutableArray isn’t thread-safe. You’ll need to synchronize/serialize the
>> assignments somehow. You could do something like
>>
>> {
>> id value = [self doCalculation: i];
Hello,
I am using Core Data to store a hierarchy of objects.
These objects are displayed in an NSOutlineView and their names are used to
populate a list of strings used in autocomplete.
Once my window loads I can see the hierarchy of objects displayed but if I try
to access them programmatica
On Aug 12, 2013, at 2:05 PM, Jens Alfke wrote:
> NSMutableArray isn’t thread-safe. You’ll need to synchronize/serialize the
> assignments somehow. You could do something like
>
> {
> id value = [self doCalculation: i];
> @synchronized(myArray) {
> myArray[i] = value;
On Aug 12, 2013, at 10:36 AM, Koen van der Drift
wrote:
> dispatch_apply(count, queue, ^(size_t i)
> {
> myArray[i] = [self doCalculation: i];
> });
NSMutableArray isn’t thread-safe. You’ll need to synchronize/serialize the
assignments somehow. You could do something like
{
id
Hi,
I'm trying to use a queue for a calculation intensive for-loop to make my iOS
app more responsive. The original for-loop works without errors:
for (NSUInteger i = 0; i < count; i++)
{
myArray[i] = [self doCalculation: i];
}
When count gets too large, there is a delay when the resu
On Mon, Aug 12, 2013, at 08:28 AM, Oleg Krupnov wrote:
> The "system.volume.internal.unmount entitlement" is not documented,
This is an authorization right, not a sandbox entitlement.
> and when I tried to add it to the list of entitlements, the app fails
> to start at all, saying not enough per
I've run across an unexpected and undocumented problem, and couldn't
google anything on it.
It seems that if an app is sandboxed, it is not permitted to eject
disks or unmount volumes.
I tried -[NSWorkspace unmountAndEjectDeviceAtPath:],
FSUnmountVolumeAsync / FSEjectVolumeAsync, DADiskUnmount /
On Aug 12, 2013, at 12:49 AM, Rick Mann wrote:
> I just noticed a couple of javaScriptCore threads in my iOS 6.1 iPad app. Any
> idea what's creating those? I don't use them directly, don't even use
> UIWebView.
Doesn't mean something in the frameworks doesn't use it.
UILabel, for example, ha
I just noticed a couple of javaScriptCore threads in my iOS 6.1 iPad app. Any
idea what's creating those? I don't use them directly, don't even use UIWebView.
--
Rick
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
29 matches
Mail list logo