Cocoaheads Lake Forest meets tomorrow

2012-11-13 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the
month.  We will be meeting at the Orange County Public Library (El Toro)
community room, 24672 Raymond Way, Lake Forest, CA 92630

Please join us from 7pm to 9pm on Wednesday, November 14.

Peter Hosey will be demoing AppCode, JetBrains' new refactoring ide for
Objective C.

Bring laptops, code, discussion topics, etc.

As always, details can be found on the cocoaheads web site at
www.cocoaheads.org
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Core Data : Batch Faulting while take advantage of cache

2012-11-13 Thread Bob Cromwell
Hi there,

In "Core Data Programming Guide"  Apple recommend a way to batch fire fault a 
collection of objects,  It should be implemented as below:
 
  NSArray * arrayOfFaults = [NSArray arrayWithObjects:object1,object2,nil];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self IN %@", 
arrayOfFaults];
  NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] 
initWithEntityName:@"Foo"];
  [fetchRequest setPredicate:predicate];
  [fetchRequest setReturnsObjectsAsFaults:NO];
  [managedObjectContext executeFetchRequest:fetchRequest error:NULL];

However using "Core Data" Instrument on iOS 6 simulator,  I found this fetch 
almost as same time as other fetch. In other words, it goes to disk and did not 
use the cache. It's unreasonable .  Since it's an " IN " clause , Core Data 
could use the objectID to find object in cache. There are no need to go to the 
disk if all of them could be found in cache.

I am pretty sure these objects in arrayOfFaults are in cache.  If I replace 
above code with this one, not cache miss are reported:

   for (NSManagedObject *object in arrayOfFaults){
   [object willAccessValueForKey:nil];
   }

So my question is : are there any way to batch fault objects while take 
advantage of the cache ? 

Bob Cromwell

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Present MFMailComposeViewController modally via segue?

2012-11-13 Thread Rick Mann
Ooops, I'm wrong. I can still implement -tableView:didSelectRowAtIndexPath:.

-- 
Rick

On Nov 13, 2012, at 5:05 , Rick Mann  wrote:

> I have a static content table view in a storyboard. One of the cells acts as 
> a button to bring up a modal MFMailComposeViewController. Before, I 
> implemented this in -tableView:didSelectRowAtIndexPath:
> 
> But I can't implement that method and have UITableViewController handle all 
> the other segues for me. What's the best way to bring up this controller? 
> There's not a counterpart for it in IB.
> 
> TIA,
> 
> -- 
> Rick
> 
> 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Present MFMailComposeViewController modally via segue?

2012-11-13 Thread Rick Mann
I have a static content table view in a storyboard. One of the cells acts as a 
button to bring up a modal MFMailComposeViewController. Before, I implemented 
this in -tableView:didSelectRowAtIndexPath:

But I can't implement that method and have UITableViewController handle all the 
other segues for me. What's the best way to bring up this controller? There's 
not a counterpart for it in IB.

TIA,

-- 
Rick




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Storyboard doesn't contain a view controller with identifier 'Foo'

2012-11-13 Thread Rick Mann
Cleaning the project, and quitting & relaunching Xcode fixed the problem. Sigh.

On Nov 13, 2012, at 2:57 , Rick Mann  wrote:

> I've been converting my app to use Storyboards. Everything's been going fine, 
> 'till I added one of the view controllers with a push segue from a dynamic 
> cell in a previous view controller.
> 
> When I tap on the cell, I get an exception with this message: Storyboard 
> doesn't contain a view controller with identifier 'Foo', where 'Foo' is an 
> auto-generated identifier. If I set the Storyboard ID in the storyboard for 
> the target VC, the message changes to that ID. Clearly the view controller is 
> there. Why doesn't it find it?
> 
> I found a lot of stuff about this with a google search, but it always had to 
> do with people trying to programmatically instantiate the VC using the 
> identifier. One person said it was a bug in Xcode that could only be worked 
> around by re-creating the project. That's a lot of work for this project; I'd 
> rather not do that.
> 
> I've never had to do anything regarding the identifier before. Any idea how 
> to fix this?
> 
> -- 
> Rick
> 
> 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Storyboard doesn't contain a view controller with identifier 'Foo'

2012-11-13 Thread Rick Mann
I've been converting my app to use Storyboards. Everything's been going fine, 
'till I added one of the view controllers with a push segue from a dynamic cell 
in a previous view controller.

When I tap on the cell, I get an exception with this message: Storyboard 
doesn't contain a view controller with identifier 'Foo', where 'Foo' is an 
auto-generated identifier. If I set the Storyboard ID in the storyboard for the 
target VC, the message changes to that ID. Clearly the view controller is 
there. Why doesn't it find it?

I found a lot of stuff about this with a google search, but it always had to do 
with people trying to programmatically instantiate the VC using the identifier. 
One person said it was a bug in Xcode that could only be worked around by 
re-creating the project. That's a lot of work for this project; I'd rather not 
do that.

I've never had to do anything regarding the identifier before. Any idea how to 
fix this?

-- 
Rick




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com