How to Use Cocoa Bindings and Core Data in a Mac App

Discussion of the official tutorials published on raywenderlich.com. Please only discuss the official tutorials here - for general questions, use the General Discussion forum instead.

How to Use Cocoa Bindings and Core Data in a Mac App

Postby rwenderlich » Fri Dec 07, 2012 11:00 am

This is the official thread to discuss the following blog post: How to Use Cocoa Bindings and Core Data in a Mac App
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
User avatar
rwenderlich
Team Member
Site Admin
 
Posts: 2144
Joined: Thu Dec 23, 2010 4:14 pm
Has thanked: 28 times
Been thanked: 332 times

Re: How to Use Cocoa Bindings and Core Data in a Mac App

Postby AlexHedley » Sat Dec 08, 2012 11:15 am

Great tut, thanks :)
User avatar
AlexHedley
Uber Haxx0r
 
Posts: 87
Joined: Sat Jun 11, 2011 11:22 pm
Has thanked: 2 times
Been thanked: 1 time

Re: How to Use Cocoa Bindings and Core Data in a Mac App

Postby yepher » Sat Jan 05, 2013 8:48 pm

Wow, that was a great article.

A tool you may find helpful while working with core data is this open source project called CoreDataUtility. It will allows you to view and interact with your core data persistence files. https://github.com/yepher/CoreDataUtility
yepher
n00b
 
Posts: 1
Joined: Sat Jan 05, 2013 8:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to Use Cocoa Bindings and Core Data in a Mac App

Postby horseshoe7 » Tue Jan 15, 2013 12:51 pm

This was an IMMENSELY helpful tutorial to get up and running quickly with CoreData and Cocoa Bindings. I'm trying to build an editor for my CoreData model and this is perfect.

It was also helpful to get the link to the app above (CoreDataEditor), but for $30, that app developer needs to create a 30-day trial version with Auth code or something. Because $30 and <= 3 star reviews aren't working in his favour...

THANK YOU VERY MUCH!!!
horseshoe7
Hacker
 
Posts: 11
Joined: Mon Dec 27, 2010 6:57 pm
Has thanked: 0 time
Been thanked: 0 time

Postby hament » Sun Aug 04, 2013 2:04 pm

hey,Andy,your tutorial is very helpful for me! But I has aquestion, In BugArrayController.m file ,the alert delegate method
- (void)alertDidEnd:(NSAlert*)alert returnCode:(NSInteger)returnCode contextInfo:(void*)contextInfo {
if (returnCode == 1000) {
}
}

what the "returnCode" stand for? why the value is 1000?
hament
n00b
 
Posts: 4
Joined: Wed Oct 31, 2012 9:54 am
Has thanked: 0 time
Been thanked: 0 time

Postby hament » Sun Aug 04, 2013 2:09 pm

oh, let me answer my question above , when i check the apple develop document , i know that returnCode==NSAlertFirstButtonReturn (1000)~~ahahaha
hament
n00b
 
Posts: 4
Joined: Wed Oct 31, 2012 9:54 am
Has thanked: 0 time
Been thanked: 0 time

Postby kd4hls » Tue Sep 24, 2013 8:54 pm

imac: 10.8.5 xcode5
The run destination My Mac 64–bit is not valid for Running the scheme 'ScaryBugsApp'.
The scheme 'ScaryBugsApp' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64–bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.
rodger
kd4hls
n00b
 
Posts: 2
Joined: Mon Sep 23, 2013 9:22 pm
Has thanked: 0 time
Been thanked: 0 time

Postby nrms » Fri Nov 01, 2013 1:39 pm

What is the line [alert respondsToSelector:@selector(doRemove)]; for?
I would think it just returns a boolean value.
nrms
n00b
 
Posts: 2
Joined: Fri Nov 01, 2013 1:37 pm
Has thanked: 0 time
Been thanked: 0 time

Postby nrms » Fri Nov 01, 2013 1:39 pm

What is the line [alert respondsToSelector:@selector(doRemove)]; for?
I would think it just returns a boolean value.
nrms
n00b
 
Posts: 2
Joined: Fri Nov 01, 2013 1:37 pm
Has thanked: 0 time
Been thanked: 0 time

Re:

Postby macandyp » Sat Nov 30, 2013 10:42 pm

kd4hls wrote:imac: 10.8.5 xcode5
The run destination My Mac 64–bit is not valid for Running the scheme 'ScaryBugsApp'.
The scheme 'ScaryBugsApp' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64–bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.
rodger


If you are running the sample app under a different OS than 10.7, you'll need to change your target's Base SDK to your current OS. As the tutorial was written before 10.8 became a standard (and now 10.9), I'm sure many people will have this issue. Go to your Project, select ScaryBugsApp under Targets and find Build Settings. Under Base SDK, choose "Latest OS X." That should take care of the issue. Check out the link for an image of where to change the setting, if you need.
http://imgur.com/93MDRQ1
macandyp
Team Member
iOS Tutorial Team Member
 
Posts: 16
Joined: Sun Oct 21, 2012 6:17 pm
Has thanked: 2 times
Been thanked: 1 time

Next

Return to Official Tutorials

Who is online

Users browsing this forum: Bing [Bot] and 12 guests