Re: A little tip for those searching the docs now that developer.apple.com has been rebuilt.

2013-08-25 Thread iOS Developer
Thanks for sharing Nimesh Neema iOS Developer Empower Integrated Solutions (P) Ltd. On 22 August 2013 21:07, Alex Zavatone wrote: > I know we touched on the topic of some links to developer.apple.com being > broken after the site rebuild, but I hope that thi

NSMetadataQuery resultAtIndex:

2013-08-25 Thread Gerriet M. Denkmann
I have a program which runs fine, except for the days it does not. I then creates an exception like: "*** -[NSMetadataQuery resultAtIndex:]: index (454) out of bounds (0)". The culprit is always NSMetadataQuery resultAtIndex:. The problem: when I start to debug, this exception soon goes away. Wh

Re: UIDocument + NSFileWrapper, how to get incremental saving to work?

2013-08-25 Thread Kyle Sluder
On Aug 25, 2013, at 2:25 PM, Markus Spoettl wrote: > On 8/25/13 11:09 PM, Kyle Sluder wrote: > > > The behavior of this method may be affected by external variables. > > In which case those would have been documented. Even if Apple's documentation were far superior to its current mediocre sta

Re: UIDocument + NSFileWrapper, how to get incremental saving to work?

2013-08-25 Thread Markus Spoettl
On 8/24/13 11:38 PM, Kyle Sluder wrote: On Sat, Aug 24, 2013, at 02:31 PM, Markus Spoettl wrote: That's exactly what I'm doing. My save times are so bad, the only explanation that I can come up with is that UIDocument/NSFileWrapper isn't really hard-linking unchanged wrappers. Or it does and als

Re: HTML to Text to Tagged Text to XHTML

2013-08-25 Thread Jens Alfke
Some thoughts: If you just convert the HTML to a plain string, you’ve lost the knowledge of how the characters in that string map back to the HTML, and I don’t think you can feasibly put it back together after modifying the string. There are two approaches I can see. (1) Use an NSMutableAttrib

HTML to Text to Tagged Text to XHTML

2013-08-25 Thread Thomas Wetmore
I am looking for some pointers or advice. I am developing an application to semantically tag HTML pages with genealogical information as defined by the schema.org/Person object and related objects. The NLP required to do the semantic analysis resides in a well-proven text processing library tha

Re: NSValue valueWithBytes:objCType:

2013-08-25 Thread Stephen J. Butler
My guess, and this is only a guess, is that NSValue only uses the type property to make sure two NSValues have the same layout before calling memcmp (or such) on them. We have a lot of evidence that it doesn't do a deep inspection of the type in order to give a more accurate comparison. Can you no

Re: NSValue valueWithBytes:objCType:

2013-08-25 Thread Andreas Grosam
On 24.08.2013, at 23:01, Jean-Daniel Dupas wrote: > > Le 24 août 2013 à 22:09, Andreas Grosam a écrit : > > > That's not a problem specifics to NSValue. I disagree. Please read the documentation of NSValue: valueWithBytes:objCType: Creates and returns an NSValue object that contains a gi

Re: Modifying the default -Prefix.pch file

2013-08-25 Thread Maxthon Chan
I don’t use it, at all. (as in, I remove it from my projects.) Also, I always have a +thisDelegate method in my app delegate which is simply a return [UIApplication sharedApplication].delegate. On Aug 25, 2013, at 23:25, Devarshi Kulshreshtha wrote: > I would like to know how I can modify the

Re: NSValue valueWithBytes:objCType:

2013-08-25 Thread Marcel Weiher
On Aug 24, 2013, at 22:09 , Andreas Grosam wrote: > What's the purpose of NSValue's class method > > + (NSValue *)valueWithBytes:(const void *)value objCType:(const char *)type; ? > > It seems, NSValue will simply memcpy the content of value, and "somehow" > determine the size in bytes from

Modifying the default -Prefix.pch file

2013-08-25 Thread Devarshi Kulshreshtha
I would like to know how I can modify the default .pch file included with the xcode project templates. Example: to add below #define in default pch file- #define APP_DELEGATE ((AppDelegate*)[[UIApplication sharedApplication] delegate]) I tried searching for a template .pch file within xcode's p

Re: "Ownership follows the 'Create' Rule'" - not literally

2013-08-25 Thread Stephen J. Butler
What they're saying here is that that parameter is following the "Create Rule" even though the function doesn't have a normal name for following the rule. They are documenting an exception to the ownership rule. If the function name did follow the rule it would be redundant to document it as such.

Re: "Ownership follows the 'Create' Rule'" - not literally

2013-08-25 Thread Jerry Krinock
On 2013 Aug 23, at 23:08, Quincey Morris wrote: > On Aug 23, 2013, at 21:13 , Jerry Krinock wrote: > >> Or, more succinctly, "You own this object". > > Exactly. Thank you, Quincey. I just submitted a Document Feedback suggesting that they replace the that misplaced reference to the Creat