[futurebasic] Re: [FB] Running app from Download folder

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2017 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Mon, 13 Mar 2017 02:26:51 -0400
Backchannel Bernie suggested some tweaks to my earlier posted code:

1. There’s no need to alloc/init/autorelease a file manager instance. This will do it:
	NSFileManager *fileManager = [NSFileManager defaultManager];

2. The NSLog window is mostly unresponsive. Fix:
	BeginCCode
	NSApplicationLoad();
	NSOpenPanel *panel = [NSOpenPanel openPanel];

3. NSOpenPanel defaults to setAllowsMultipleSelection = NO, so this line can be removed:
	[panel setAllowsMultipleSelection:NO];

Thanks Bernie!

Ken