Follow LostMuser on Twitter

Wednesday, June 22, 2011

What Were They Thinking? [Apple]

Read the last two sentences of this documentation entry (It says "This method is unimplemented in iOS, so it performs no operation."). Can you think of a scenario where it makes sense to put this in the docs at all? I can't...

Sadly this is exactly the routine I need for the work I'm doing. I guess I'm too small of a market for Apple to support me =P.

getResourceValue:forKey:error:

Returns the resource value for the property identified by a given key.

- (BOOL)getResourceValue:(id *)value forKey:(NSString *)key error:(NSError **)error

Parameters

value

The value for the property identified by key.

key

The name of one of the URL’s resource properties.

error

The error that occurred in the case that the resource value cannot be retrieved.

Return Value

YES if value is successfully populated; otherwise, NO.

Discussion

value is set to nil if the requested resource value is not defined for the URL. In this case, the method still returns YES.

This method is unimplemented in iOS, so it performs no operation.

Availability

  • Available in iOS 4.0 and later.

Tuesday, June 21, 2011

Red Rock's Wifi Blocker [UDP]

You know those blockers that make you click "I accept" they have at cafe's and stuff? When the one at redrock drops you, apparently UDP broadcasts are still allowed. TCP connections still aren't though!

This funniness caused me to go do some interesting but unnecessary debugging today =).

Wednesday, June 15, 2011

File Monitor [iOS] [OS X]

I built a class for monitoring file changes. It will fire events on the delegate when files or folders are modified.


I'm taking the code base in a new direction, but this class was so cool and useful I'm publishing it here.


http://dustytech.com/FileMonitor.zip



Musing's Blog Viewer Webcam



(People reading the blog right now!)