Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread Ed Wynne
> On Mar 23, 2017, at 1:40 PM, Charles Srstka wrote: > >> On Mar 23, 2017, at 3:50 AM, Alastair Houghton >> wrote: >> >> On 22 Mar 2017, at 19:13, Chris Ridd > > wrote: >>> On 22 Mar 2017, at 09:05, Alastair Houghton >>> > w

Re: Beep ( duration, frequency )

2015-09-23 Thread Ed Wynne
On Sep 23, 2015, at 7:41 PM, Raglan T. Tiger wrote: > > >> On Sep 23, 2015, at 5:30 PM, Jens Alfke wrote: >> >> What is it you’re trying to do? > > I want code that is this simple on Windows: > > DWORD freq = 587; > if(!something) freq = 659; > if(another) freq = 523; > Beep(freq, 150); O

Re: API to determine status of System Integrity Protection?

2015-09-14 Thread Ed Wynne
On Sep 14, 2015, at 7:05 AM, Jean-Daniel Dupas wrote: >> Le 14 sept. 2015 à 01:33, Ed Wynne a écrit : >> On Sep 13, 2015, at 5:47 PM, Stephane Sudre wrote: >>>>>> That document doesn't mention an API… >>>>> Hence, since that is the current doc

Re: API to determine status of System Integrity Protection?

2015-09-13 Thread Ed Wynne
On Sep 13, 2015, at 5:47 PM, Stephane Sudre wrote: That document doesn't mention an API… >>> Hence, since that is the current documentation, my conclusion : “Don’t >>> think so”. >> There is an API. Much like with sandboxing it just may not be public, which >> means it is inappropriate for

Re: API to determine status of System Integrity Protection?

2015-09-12 Thread Ed Wynne
On Sep 12, 2015, at 1:45 PM, sqwarqDev wrote: > >> On 13 Sep 2015, at 00:43, SevenBits wrote: >> >> That document doesn't mention an API… >> > Hence, since that is the current documentation, my conclusion : “Don’t think > so”. There is an API. Much like with sandboxing it just may not be

Re: To find if a file is fragmented

2014-04-08 Thread Ed Wynne
The information may be irrelevant and/or useless, but it is available for file systems that support it (HFS+ does). Although, I think it may require super-user privileges to query. $ man fcntl … F_LOG2PHYS Get disk device information. Currently this only

Re: CGImageRef as a property of a cocoa object

2013-09-22 Thread Ed Wynne
> On Sep 22, 2013, at 5:07 AM, Graham Cox wrote: >> Not if there is a specific retain/release function such as CGImageRetain, >> CGImageRelease. These ignore nil. You should always use these instead of a >> generic CFRelease because they may do additional work for all we know. No, these functio

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Ed Wynne
On Jul 24, 2011, at 3:46 PM, Gary L. Wade wrote: > As I mentioned before, everyone should go to bugreporter.apple.com and enter > bugs against this horrible MS Windows method of UI that prevents usable > viewing of multiple files that has been added to Xcode. How do you stop the cycle if that

Re: question on speed and memory display on 10.6.

2010-09-12 Thread Ed Wynne
On Sep 12, 2010, at 5:43 PM, Seth Willits wrote: > On Sep 12, 2010, at 12:33 PM, Mitchell Livingston wrote: > >> In 10.6 the display of disk space was changed from base-2 to base-10, as >> discussed in http://support.apple.com/kb/TS2419. For download rates >> (KB/sec), is that also in base-10

Re: short question but I don't know how to describe it

2010-03-08 Thread Ed Wynne
On Mar 8, 2010, at 4:55 PM, Nick Zitzmann wrote: On Mar 7, 2010, at 5:07 PM, Marx Bievor wrote: I can substitute a String with %@ and an int with %d... like in return @"Hi I am %@ and %d years old", name, age; what is the right command to substitute a bool and a float? I cannot find any ref

Re: why use pow(x, 2)?

2009-11-02 Thread Ed Wynne
On Nov 2, 2009, at 11:36 AM, Sherm Pendley wrote: On Mon, Nov 2, 2009 at 2:25 PM, Ed Wynne wrote: That said, the original question is a good one. Using x*x instead of pow(x,2) would be quite a bit faster Are you certain of that? With loop unrolling and inlined functions, it should result

Re: why use pow(x, 2)?

2009-11-02 Thread Ed Wynne
On Mon, Nov 2, 2009 at 2:07 PM, Jens Alfke wrote: On Nov 2, 2009, at 11:01 AM, Chunk 1978 wrote: why use this: float dist = pow(red - r, 2) + pow(green - g, 2) + pow(blue - b, 2); instead of: float dist = ((red - r) * 2) + ((green - g) * 2) + ((blue - b) * 2); Um, "*" is multiplication, no

Re: How to do what Finder does programmatically

2009-09-23 Thread Ed Wynne
On Sep 24, 2009, at 1:38 AM, Kyle Sluder wrote: On Wed, Sep 23, 2009 at 10:29 PM, Ed Wynne wrote: A pity, sounds like the perfect use for an extended attribute. Resource forks are extended attributes: http://www.macgeekery.com/tips/the_new_resource_fork Not really, they are just faked to

Re: How to do what Finder does programmatically

2009-09-23 Thread Ed Wynne
On Sep 24, 2009, at 1:25 AM, Jens Alfke wrote: On Sep 23, 2009, at 9:38 PM, Gerriet M. Denkmann wrote: If the document is a file, Finder will add a 'usro' resource which contains the absolute path to the application to be used. Thanks to Alistair who pointed me to:

Re: Making failed NSAsserts crash an app

2009-08-27 Thread Ed Wynne
On Aug 27, 2009, at 3:12 PM, Kyle Sluder wrote: On Thu, Aug 27, 2009 at 9:46 AM, Squ Aire wrote: However, do you have any idea how to accomplish what I actually want to do? Is my original idea of forcing asserts to crash maybe bad, which is why noone even thought of suggesting a way to do it

Re: Listening to Eject command

2009-07-29 Thread Ed Wynne
On Jul 29, 2009, at 9:12 PM, Farooq zaman wrote: For some reasons, I need to customize (or listen to) Eject command. I want this to happen before system actually do something with the device i.e eject disc or shows up some error. I want to perform some operation on disc before system eject

Re: Referring to file by Alias ^or^ path

2009-06-02 Thread Ed Wynne
On Jun 3, 2009, at 12:43 AM, Ken Thomases wrote: On Jun 2, 2009, at 9:35 PM, Kyle Sluder wrote: Is -fileSystemRepresentation smart enough to deal with filenames that point to volumes on which the canonicalization is different than that used on HFS+? Its purpose isn't to match the canonicaliza

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Ed Wynne
On May 3, 2009, at 5:38 PM, Kyle Sluder wrote: Initializers must call -[self release] in case of an error. This means that in response to an error that occurs as part of initialization, you must not release that object. Initializers that call -[self release], for any reason, had also bette

Re: Get the name of the method that called a method

2009-04-21 Thread Ed Wynne
On Apr 21, 2009, at 11:27 AM, Alastair Houghton wrote: On 21 Apr 2009, at 15:59, Michael Ash wrote: On Tue, Apr 21, 2009 at 2:09 AM, Alex Kac wrote: I am trying to log some specific error conditions in a fairly dynamic environment (of course Obj-C's forté), and would like to log some sort

Re: BOOL value in Dictionary

2008-11-21 Thread Ed Wynne
On Nov 21, 2008, at 10:54 AM, David Blanton wrote: Why is : if ( boolVar == YES) or if ( boolVar == NO) bad form? if (boolVar == YES) is bad form, but if (boolVar == NO) and if (boolVar != NO) is not. In C the concept of false has one and only one value, 0, which is #defined to be NO

Re: Disc write speed options

2008-08-12 Thread Ed Wynne
On Aug 12, 2008, at 11:04 AM, Matthew Mashyna wrote: I'm trying to figure out how I can ask a DRDevice what burn speeds it's capable of so I can offer a choice to the user. When I call the status and info messages I don't see anything that looks useful. How can I get and set the burn rate