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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 10-28-2009, 05:40 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Atlanta, GA
Posts: 16
Default Core Data String Issue *** Resolved ***

I'm sure this will be a stupid question but I need some help...

I just started converting one of my Apps to Core Data today. All is working but...

I have a string property in my data store. When I retrieve it it comes back as 3 characters long if empty, and 10 characters long if populated with 2 characters. ("NO" for example)

I have tried changing the attribute min/max lengths in Xcode to no avail.

Is this normal??? I was really pleased with how easy setting everything up was going but I plan to use the values retrieved and the extra padding is making things really painful.

Thanks in advance for any info.


Ladd


*** Edit ***
Solved by returning a dictionary in my case.

// Specify that the request should return dictionaries.
[request setResultType:NSDictionaryResultType];

???

Last edited by Ladd; 10-29-2009 at 10:28 AM. Reason: Solved
Ladd is offline   Reply With Quote
Reply

Bookmarks

Tags
core data, padding, string, white space

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: 350
21 members and 329 guests
ADY, Dani77, Duncan C, e2applets, Herbie, JasonR, keeshux, linkmx, mer10, Monstertaco, piesia, prchn4christ, Promo Dispenser, Robiwan, sebasx, sly24, Touchmint, twerner, zulfishah
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,760
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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