Re: How to send fetchrequest to main context from a local context on a separate thread?

2012-10-19 Thread Mikkel Islay
On 19 Oct 2012, at 14:54, Koen van der Drift wrote: > So is there a way in Xcode to follow threads and (visually) get an > idea about what happens on each one, so I can debug this? I have seen > all the threads pop up in the left column during the execution, but I > find that kinda difficult to

Re: lambda in C++

2012-10-17 Thread Mikkel Islay
On 17 Oct 2012, at 10:44, Luca Ciciriello wrote: > I've read that Apple LLVM supports many specific features of the C++ new > standard including lambda functions. You can see which language features are supported by Clang, and from which release here: http://clang.llvm.org/cxx_status.html (ye

Re: lambda in C++

2012-10-17 Thread Mikkel Islay
Luca, On 17 Oct 2012, at 10:19, Luca Ciciriello wrote: > Is there some WWDC2012 video section talking about lambda in C++ 0x11? I can't imagine why WWDC-talks would touch specifically on new language features in C++. Are you looking for information on lambdas in relation to Apple's technologies

Re: iOS popovers - View lifecycle.

2012-09-07 Thread Mikkel Islay
On 7 Sep 2012, at 17:48, Alex Zavatone wrote: > Well, wouldn't we expect that the popover controller would message the events > to the view within it? It seems strange that view controller events are > completely thwarted by using the popover controller. If no view is added to the VC view-hier

Re: iOS popovers - View lifecycle.

2012-09-07 Thread Mikkel Islay
On 7 Sep 2012, at 16:39, Alex Zavatone wrote: > I just noticed that when we open a popover ala a segue, that after it is > dismissed, when it is opened again, none of the view lifecycle methods are > called. > > viewWillAppear, viewDidAppear both don't get called, but it appears just fine. >

Re: On handling those lovely unrecognized selector sent to instance SIGABRTs

2012-08-30 Thread Mikkel Islay
Hi Alex, On 30 Aug 2012, at 05:03, Alex Zavatone wrote: > And if you don't know that Symbolic Breakpoints even exist, or what they are > used for, how do you know that part of the documentation is where to turn to > to find a solution? > If the issue is "I have no idea how to track down what cr

Re: Data encryption

2012-06-06 Thread Mikkel Islay
Charles, Cryptographic services is a good place to start: https://developer.apple.com/library/mac/#documentation/Security/Conceptual/Security_Overview/CryptographicServices/CryptographicServices.html#//apple_ref/doc/uid/TP3976-CH3-SW1 Mikkel On 6 Jun 2012, at 18:51, Charlie Dickman wrote: >

Re: Managed Objects and Contexts

2012-05-31 Thread Mikkel Islay
Richard, It's a fair question. The reason is that working with your data in separate contexts makes manipulating it safer. It can also make your model / controller code simpler and more structured. At the "atomic level", core data maintains at most one instance of an managed object per context

Re: Sandboxing. WTF?

2012-05-29 Thread Mikkel Islay
On 29 May 2012, at 01:59, Graham Cox wrote: > Nobody has written a better analysis, critique and alternative suggestion for > sandboxing than Wil Shipley: > http://blog.wilshipley.com/2011/11/real-security-in-mac-os-x-requires.html An interesting post, but his arguments against sandboxing, I t

Re: Sandboxing. WTF?

2012-05-28 Thread Mikkel Islay
On 28 May 2012, at 07:58, Quincey Morris wrote: > On May 27, 2012, at 22:40 , Graham Cox wrote: > >> People will always click "Allow" if it gives them an easy life. > I don't know of any solution to that, though I guess asking is better than > not being forced to ask. Perhaps the app store rev

Re: stringWithFormat / Rendering Text (iOS)

2012-05-24 Thread Mikkel Islay
Jason, Have a look at this doc-page: https://developer.apple.com/library/mac/ipad/#documentation/graphicsimaging/conceptual/drawingwithquartz2d/dq_text/dq_text.html It discusses your options when drawing text with Quartz2D, and also mentions other techniques. One option of note is the NSString ad

Re: Using Instruments to profile UITableView drawing

2012-04-26 Thread Mikkel Islay
On 26 Apr 2012, at 20:37, Marco Tabini wrote: > I wonder if someone could point me to the right way to profile > poorly-performing custom-drawn UITableView cells. I've come across this > problem several times, and usually manage to figure out how to solve it, but > my process is not very scien

Re: WWDC

2012-04-25 Thread Mikkel Islay
On 25 Apr 2012, at 21:34, Vincent Habchi wrote: > Uh? There was a iOS 5 tour in Europe I heard of, but nothing concerning OS X > this year or the year before AFAIK. For OS X, the NSConference (UK) is one, certainly. http://youtu.be/SKaThGBuSdc However, you are right. iOS seems to be the most e

Re: WWDC

2012-04-25 Thread Mikkel Islay
On 25 Apr 2012, at 19:47, Ravi Singh wrote: > I don't think they need to increase the cost, they need to let developers > know a week ahead so you can plan for it and limit it to developers only. I think an important metric for determining conference size, is (should be) how much Apple develo

Recursive call-back block

2012-04-10 Thread Mikkel Islay
Hello, The (prototype) code below updates a number of objects of a NSManagedObject-sublass (Progenitor) from a remote host. As the number of objects to update is unknown I would like to use a call-back passed to the updater class invoked by startParserWithObjectId: completionBlock: to recursiv

Re: iOS App - crash when clearing a UITableDetailView

2012-04-03 Thread Mikkel Islay
On 3 Apr 2012, at 16:20, Kyle Sluder wrote: > On Apr 3, 2012, at 4:52 AM, Steve Bird wrote: > >> >> That's because David swiped it. > > I chuckled. :) > > But it's worth remembering we have many non-fluent English speakers on this > list who may not know that "swipe" is also slang for "to s

Re: Stenography

2012-04-02 Thread Mikkel Islay
This may be a case of selective perception. Apparently Cocoa-developer are more familiar with steganography than shorthand. :) Since the original poster explicitly wrote "stenography", it seems plausible that was what he meant. In fact, i know that trainee journalists in the UK are taught sho

Re: UIKit-additions and class references

2012-03-08 Thread Mikkel Islay
On 7 Mar 2012, at 20:40, David Duncan wrote: > Category additions are documented separately from the main class. For > example, UIKit's NSString additions are in NSString(UIStringDrawing) (which > you can search for in the documetnation). Absolutely. However, it would be convenient (and helpful

Re: UIKit-additions and class references

2012-03-08 Thread Mikkel Islay
On 7 Mar 2012, at 06:10, Richard Somers wrote: > It appears that the same NSString Class Reference documentation for the Mac > OS X Developer Library is also used for the iOS Developer Library. The > original Mac OS X documentation does not mention iOS. No doubt that is the case. For example th

UIKit-additions and class references

2012-03-06 Thread Mikkel Islay
Hello, Does anyone know the reason why the UIKit-additions for NSString, NSValue etc. aren't mentioned in the respective class references in the Apple documentation for iOS? Regards, Mikkel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: Blocks and Methods...

2012-01-28 Thread Mikkel Islay
On 28 Jan 2012, at 20:50, R wrote: > That is precisely what is giving me the confusion. If retained the > received block in a NSMutableArray, the block should stick around (via > a strong array pointer) for another method. It only stays around if I > equate the block to a typedef variable and th

Re: Finder File Size discrepancy..

2011-12-27 Thread Mikkel Islay
On 27 Dec 2011, at 17:48, Robert Monaghan wrote: > > I have a file that is 352524244 bytes in size. > My application calculates it to be 336.19 Megs in size. > Finder displays this as 352.5 MB. > > So, if I am not mistaken, Apple isn't dividing by 1024, but rather by 1000? > > Has anyone else h

Re: ARC and dealloc

2011-12-08 Thread Mikkel Islay
e view-unloading was one step further removed from deallocation of the observer-instance. /Mikkel Islay ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

ARC and dealloc

2011-12-07 Thread Mikkel Islay
regarding when in the release-process dealloc is called? Incidentally, the Apple List search tool appears not to work (i.e. returns no results). Thanks, Mikkel Islay ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Asynchronous downloading and parsing of XML

2011-08-09 Thread Mikkel Islay
On 8 Aug 2011, at 19:20, Thomas Davie wrote: > All of this is asynchronous, so everything works happily :) Sure, "we" have established that your solution works, so far so good. What I am trying to get at is whether there is some design-pattern implied in the docs for the class which should aler

Re: Asynchronous downloading and parsing of XML

2011-08-09 Thread Mikkel Islay
On 8 Aug 2011, at 19:44, Jens Alfke wrote: > It’s clearly a SAX parser. SAX parsers are incremental, that’s their whole > point, otherwise it would be easier just to use a DOM API like NSXMLDocument. The docs implies that it is (related to it): http://developer.apple.com/library/mac/#documentati

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Mikkel Islay
On 8 Aug 2011, at 19:04, Thomas Davie wrote: > > Parameters > stream > The input stream. The content is incrementally loaded from the specified > stream and parsed. No, that states something about the way NSXMLParser is able to parse from a stream. It doesn't say anything about its state with r

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Mikkel Islay
Thanks for the explanation, Jens too. The hint that NSXMLParser has that behaviour is that it accepts an NSInputStream, or that it relies on a delegate for communicating "parse-events"? Mikkel On 8 Aug 2011, at 10:34, Andreas Grosam wrote: > No. Asynchronous routines can be implemented above a

Re: Asynchronous downloading and parsing of XML

2011-08-07 Thread Mikkel Islay
e: > - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)d > { >[[self buffer] appendData:d]; > [self attemptToWriteToStream]; > } > > - (void)connectionDidFinishLoading:(NSURLConnection *)connection > { > finishedLoading = YES; > } > &

Re: sorting a pair of arrays

2011-06-28 Thread Mikkel Islay
On 28 Jun 2011, at 18:40, Gregory Weston wrote: > Which fails the if there's any possibility that the items in the first array > aren't unique. Better two have an array of dictionaries where each dictionary > holds a respective pair from the current two arrays as their own objects] Granted, but

Re: sorting a pair of arrays

2011-06-28 Thread Mikkel Islay
Hi Rick, It sounds to me like one way of looking at your data structures is as a NSDictionary with the first array as keys and the second as objects (values). If so, you could then sort the keys using - (NSArray *)keysSortedByValueUsingComparator:(NSComparator)cmptr , or one of the other sortin

Re: Synthesised properties and additional actions

2011-06-22 Thread Mikkel Islay
It's a variation on this pattern, from the "The Objective-C Programming Language": http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocProperties.html#//apple_ref/doc/uid/TP30001163-CH17-SW1 Mikkel___ Cocoa-dev

Re: The simplest way to fade out a view

2011-05-19 Thread Mikkel Islay
>> Yes, that's what i want to do, but how to find out when the animation ends? > > Check out that -animationDidStop:finished: delegate method for CAAnimation. Indeed. > I haven't really followed developments on OS X closely, so I welcome > other list members setting me straight, but AFAIK the b