Under Cocoa Core Data, the `NSAttributeDescription` class is used to describe attributes of an entity described by an instance of `NSEntityDescription`.
Questions tagged [nsattributedescription]
8 questions
2
votes
1 answer
How to get NSAttributeDescription?
I have a User : NSManagedObject. What's the best way to get an NSAttributeDescription of it's userID attribute?

ma11hew28
- 121,420
- 116
- 450
- 651
2
votes
2 answers
Get the Attributes of every item in the Document Directory iOS Swift
I've been trying to get Attributes such as File Type, Creation Date, File Size of all the items in the Document Directory.
Here is the code that I've been using, but it returns me just "NSFileTypeDirectory"
let filemgr = FileManager.default
…

Nikhil Viradiya
- 87
- 2
- 15
2
votes
1 answer
Attributed string font color is not working
I am trying to set the font color and its not working for some reason
public void ConvertToLinkButton(UIButton btn, String hyperlink)
{
CTStringAttributes attributesHyperLink = new CTStringAttributes();
attributesHyperLink.UnderlineStyle =…

Durai Amuthan.H
- 31,670
- 10
- 160
- 241
1
vote
2 answers
Why is there no Integer 8 NSAttributeDescription attributeType in Core Data?
Core Data's NSAttributeDescription has integer types for 16-bit, 32-bit, and 64-bit numbers, but not for 8-bit numbers. Why is that? Is the recommended way to store 8-bit numbers in an Integer 16 type?
It seems wasteful from a storage perspective to…

ospr
- 1,650
- 2
- 17
- 21
1
vote
1 answer
Programmatically check if Core Data entities are indexed
I am currently working with a library that sits between Core Data and the sqlite database (i.e. it handles a lot of the Core Data calls, and translates them into SQL queries).
I have noticed that when creating the sqlite tables, it doesn't add any…

Nick Jones
- 523
- 1
- 3
- 17
1
vote
1 answer
CoreData getting attribute type - how to determine if it is a primitive
I'm trying to get all the attributes for an entity and then determine their type - I know I can do something on this line:
if(![[thisAttribute attributeValueClassName] isKindOfClass:[NSString class]]) {
but how do I check for a BOOL, Float or…

PruitIgoe
- 6,166
- 16
- 70
- 137
0
votes
1 answer
Xcode 4.2 Core Data Model Versioning Issues
I have a model that I created a long time ago. Everything works great, until I try to add a new model version. At runtime none of my attributes' User info key/value pairs show up. Reverting back to the previous xcdatamodel version works fine, only…

logancautrell
- 8,762
- 3
- 39
- 50
0
votes
1 answer
Core Data: Group by and count results returns empty list
Consider the following Core Data entity:
Person - personId: NSNumber, name: NSString, position: NSString
Using Core Data, I'm trying to replicate the following SQL query:
SELECT `position`, COUNT(*) FROM `Person` GROUP BY `position`
Below is the…

krisk
- 6,957
- 1
- 18
- 30