Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-28-2011, 03:47 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 45
rolandolopez is on a distinguished road
Default core data with storyboarding

Hi everyone,
I've set up a database with a table that deals with let's say currency. It has name (ie US Dollars, Pound, etc), symbol (ie $, £, etc) as attributes. Now I have set up another table, let's say price with amount (a float) as the attribute and a relationship named currency that has a destination of the currency table and no Inverse.

When I try to create a new Price entry i get an error with my line
Code:
[newPriceObject setCurrency:aCurrency];
When I comment out this line it works great. So I know newPriceObject is set up correctly and functions as expected. I know aCurrency is of type Currency.

I get the SIGABRT error on the above line.

Thanks for any help you can offer.
rolandolopez is offline   Reply With Quote
Old 12-28-2011, 03:52 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

What is the full error message?
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 12-29-2011, 08:44 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 45
rolandolopez is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
What is the full error message?
I must have been tired when I wrote that. The actual line is
Code:
[newPriceObject setCurrencyName:[aCurrency name]];
And the actual error is on [aCurrency name];

No specific error just the SIGABRT.

I know it's not much to go on. Does anyone have an example of saving a record to a table that has a relationship to another table?
rolandolopez is offline   Reply With Quote
Old 12-29-2011, 08:50 AM   #4 (permalink)
Use [code] tags please
 
Join Date: Jun 2009
Location: Jacksonville, FL
Posts: 410
timle8n1 is on a distinguished road
Default

Quote:
Originally Posted by rolandolopez View Post
I must have been tired when I wrote that. The actual line is
Code:
[newPriceObject setCurrencyName:[aCurrency name]];
And the actual error is on [aCurrency name];

No specific error just the SIGABRT.

I know it's not much to go on. Does anyone have an example of saving a record to a table that has a relationship to another table?
I'll bet there is a more specific error in the console.

Also I don't see a relationship here setCurrencyName is getting passed a property of aCurrency - based on the property name (name) I assume an NSString.

There is not enough information to help you.
timle8n1 is offline   Reply With Quote
Old 12-29-2011, 09:39 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 45
rolandolopez is on a distinguished road
Default

Quote:
Originally Posted by timle8n1 View Post
I'll bet there is a more specific error in the console.

Also I don't see a relationship here setCurrencyName is getting passed a property of aCurrency - based on the property name (name) I assume an NSString.

There is not enough information to help you.
The more i look at it the more I think it's a general error and not anythign specific to my code. Does anyone have an example of saving a record to one table that links to another table?
rolandolopez is offline   Reply With Quote
Old 12-29-2011, 10:34 AM   #6 (permalink)
Use [code] tags please
 
Join Date: Jun 2009
Location: Jacksonville, FL
Posts: 410
timle8n1 is on a distinguished road
Default

Quote:
Originally Posted by rolandolopez View Post
not anythign specific to my code.
Really you think the problem is the SDK? I can assure you I have many application that use core data, storyboards (which I don't see what that has to do with anything), and relationship between core data objects. I simply can't post a simple example because core data isn't simple - you have your model, the generated classes, the store, the context, etc. Seriously post more code, more error output, etc - if not - good luck.
timle8n1 is offline   Reply With Quote
Old 12-29-2011, 10:45 AM   #7 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 45
rolandolopez is on a distinguished road
Default

Quote:
Originally Posted by timle8n1 View Post
Really you think the problem is the SDK? I can assure you I have many application that use core data, storyboards (which I don't see what that has to do with anything), and relationship between core data objects. I simply can't post a simple example because core data isn't simple - you have your model, the generated classes, the store, the context, etc. Seriously post more code, more error output, etc - if not - good luck.
no no....I'm not so arrogant to think it's the SDK. I know it's my code. But After looking at it again what I'm saying is that it's elsewhere in my code and not where I originally posted.
rolandolopez is offline   Reply With Quote
Reply

Bookmarks

Tags
core data, iphone, object creation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 390
13 members and 377 guests
7twenty7, AppsBlogger, Creativ, Dalia, David-T, Duncan C, HemiMG, heshiming, LunarMoon, Murphy, pbart, teebee74, Tomsky
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:51 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0