converting coredata files

2013-02-02 Thread Amy Heavey
Hi, I've got an app that I write for myself (I am the only user). I made a mistake when creating the datamodel in xcode 3 (targeting 10.5), I used description as an attribute name. I have now upgraded and the current xcodes do not like the project file at all. I've got quite a lot of data in

Image Colours

2012-03-03 Thread Amy Heavey
Hi, I've got an app that is a custom app for me and my home business, it's not something commercial. It's a core data app and some of the entities have images associated with them. The images themselves are stored separately, and the coredata datastore stores the reference to them.

Re: Image Colours

2012-03-03 Thread Amy Heavey
2012, at 20:35, Jens Alfke j...@mooseyard.com wrote: On Mar 3, 2012, at 5:17 AM, Amy Heavey wrote: I thought I would do this by analysing each image as it is saved and calculate the most common pixel colours, probably by analysing each pixel in the image? and saving the most common colours

Frameworks (ConnectionKit)

2011-08-09 Thread Amy Heavey
at the hillegass book there should be a .framework file for me to link to but I can't find one. I also can't find any documentation about how to use this. Can anyone point me in the right direction? Either for using ConnectionKit or how else to simply ftp a file to a server? Many Thanks Amy

Re: selected image in webview

2011-07-05 Thread Amy Heavey
what image has been selected? I'd appreciate any help, Many Thanks Amy On 5 Jul 2011, at 5:07PM, Jens Alfke wrote: On Jul 4, 2011, at 10:55 PM, Amy Heavey wrote: Is there a way to get the selected item in a webview? I've got a webview in my app, and I'd like to select an image

selected image in webview

2011-07-04 Thread Amy Heavey
Hi, Is there a way to get the selected item in a webview? I've got a webview in my app, and I'd like to select an image and download it. Many Thanks Amy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

attribute is an array?

2011-06-21 Thread Amy Heavey
Hi, I'm trying to acccess a decimal attribute of an entity, and I can't work out why it's not working. I'm using the code below; NSString *price = [[product valueForKey:@kitFee] stringValue]; and I get this error: 2011-06-21 12:43:34.666 ishop[30901:10b] *** -[NSCFArray stringValue]:

OS + iOS best practice

2011-06-03 Thread Amy Heavey
I hope this appropriate for this list, if not please accept my apologies. I've got a fairly basic core data app that I've written for personal use on my iMac. I'd like to have an iPad version as it would be very useful to have whilst I was mobile. (It's basically a customer/product

Re: OS + iOS best practice

2011-06-03 Thread Amy Heavey
Joyce wrote: On Jun 3, 2011, at 1:04 PM, Amy Heavey wrote: I hope this appropriate for this list, if not please accept my apologies. I've got a fairly basic core data app that I've written for personal use on my iMac. I'd like to have an iPad version as it would be very useful to have

image rotation

2011-04-29 Thread Amy Heavey
complicated than I'm looking for. I'm expecting to effectively have the componant images fan out on the canvas. If anyone could help me with the process I'd be grateful, do I have to create a intermediary image to make the rotated image square? Thanks, Amy Many Thanks Amy Heavey Willow Tree

binding relationship to checkbox

2011-03-05 Thread Amy Heavey
Hi Everyone, I was wondering if anyone could point me in the right direction for my problem? I'm working on a core data application, and in this issue I have 2 entities, product and category. They have a many to many relationship. In my interface I want to have a list of all the

array controllers and key paths

2011-01-31 Thread Amy Heavey
Hi, I've got 3 entities, Event, CustomerOrders and CustomerORderITems. Events has a to many relationship (eventOrders) to CustomerOrders CustomerOrders has a to many relationship (customerOrderItems) to CustomerOrderItems I'd like to be able to list all of the CustomerOrderItems for a

loop not running

2011-01-20 Thread Amy Heavey
I've got the following code that is almost identical to code I've got in another app. The other app works, this one doesn't. The only difference between the two is the variable names; - (IBAction)addItemsToOrder:sender;{ NSObject *order; order = [[Orders selectedObjects]

array contents and objects

2011-01-14 Thread Amy Heavey
I've got a core data app that has 2 entities, product and status, and a relationship between them. I'll be importing and updating some of the data in the app from csv files supplied from an outside source. The 'status' is just given as a string. There are 3 options, Low Stock, Out of

Mapping model

2011-01-11 Thread Amy Heavey
Thanks Amy Heavey ___ 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

Image Resolution

2010-10-18 Thread Amy Heavey
= [imageLoop nextObject])) { NSImage *img = [[NSImage alloc]initWithContentsOfFile:imgPath]; [targetImage lockFocus]; [img drawInRect:NSMakeRect(x,y,75,75) fromRect:NSMakeRect(20,20,0,0) operation:NSCompositeCopy fraction:1]; Thanks Amy Heavey

confused about floats

2010-10-08 Thread Amy Heavey
I've got two float values (x and y) that I'm using to change the coordinates of a drawing action that is being looped through. I can add a value to x and it draws the next image along, but I want to test the value of x and if it is out of bounds I want to reset it to zero and increase y,

Confused about floats

2010-10-05 Thread Amy Heavey
I've got two float values (x and y) that I'm using to change the coordinates of a drawing action that is being looped through. I can add a value to x and it draws the next image along, but I want to test the value of x and if it is out of bounds I want to reset it to zero and increase y,

Re: Confused about floats

2010-10-05 Thread Amy Heavey
Thanks for all the help everyone, I'll take a look at it all, and release where I need to! Many Thanks Amy On 5 Oct 2010, at 4:17PM, Matt Neuburg wrote: On Tue, 5 Oct 2010 10:17:31 +0100, Amy Heavey a...@willowtreecrafts.co.uk said: //select all images for kit NSArray* kitImages

Re: Confused about floats

2010-10-05 Thread Amy Heavey
Got it working, Part of my issue seemed to be my logic. 300 is the bounds of my target image, and I have planned it so images fit inside this, so x would end up being 300. In a stupid moment, I set the if statement to run if x300, which initially it wouldn't be as it would actually equal

Problem with MakeKeyandOrderFront

2010-10-05 Thread Amy Heavey
My app has a secondary view that appears when I click a button (to do another task) it works fine most of the time. It's a core data app that uses an xml file store. I've started adding data so there's now maybe 1000 instances of an entity in it, and I've not started adding other entities

Re: Problem with MakeKeyandOrderFront

2010-10-05 Thread Amy Heavey
and start all over again, Amy On 5 Oct 2010, at 20:59, Ken Thomases wrote: On Oct 5, 2010, at 1:55 PM, Amy Heavey wrote: Now when I click the button the focus goes from the main window but the second window doesn't appear. If I move the data file it works fine. Have I just overloaded it already

Re: portable app

2010-10-02 Thread Amy Heavey
in /Users/user/yourapp/Application Support, it looks: NSString *appSupport = NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent: @Appication Support]; 2010/9/29 Amy Heavey a...@willowtreecrafts.co.uk I'm writing an app for personal use

Re: portable app

2010-10-01 Thread Amy Heavey
= NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent: @Appication Support]; 2010/9/29 Amy Heavey a...@willowtreecrafts.co.uk I'm writing an app for personal use, using core data. At the moment it's set up to save the data file in the library

portable app

2010-09-29 Thread Amy Heavey
I'm writing an app for personal use, using core data. At the moment it's set up to save the data file in the library/ application support/myapp folder on the machine. I also want to store a growing number of images to use with the app, so they are set to store in this folder as well.

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
Many Thanks Amy On 28 Aug 2010, at 4:08PM, David Duncan wrote: On Aug 28, 2010, at 8:04 AM, Amy Heavey wrote: Sorry duh! 2010-08-28 15:55:27.961 ishop[1920:10b] *** -[NSURL stringByAppendingPathComponent:]: unrecognized selector sent to instance 0x16fbe0 2010-08-28 15:55:27.961 ishop

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
10.5 i386, On 29 Aug 2010, at 9:21AM, Roland King wrote: What OS are you building for? On 29-Aug-2010, at 4:14 PM, Amy Heavey wrote: I still get an error: 2010-08-29 09:13:46.337 ishop[2766:10b] *** -[NSURL URLByAppendingPathComponent:]: unrecognized selector sent to instance 0xc6356a0

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
On 29 Aug 2010, at 9:30AM, Graham Cox wrote: On 29/08/2010, at 10:14 AM, Amy Heavey wrote: I still get an error: On what line? Looking at the code you have mixed string paths and URLs. Pick one or the other and use it consistently. While string paths are becoming deprecated in favour

Re: NSString / NSURL

2010-08-29 Thread Amy Heavey
] stringByAppendingPathComponent:@images ] stringByAppendingPathComponent:fileName ]; then just use the imagePath. On 29-Aug-2010, at 5:23 PM, Amy Heavey wrote: Thanks everyone, I've been looking at everything and still can't quite get my head round it, basically all I want to do is copy a selected file to a new

NSString / NSURL

2010-08-28 Thread Amy Heavey
'm trying to do a fairly simple copy file process, so I select a file, and it gets copied to a new location. I seem to be mixing up NSString and NSURL as I keep getting an NSURL error, can anyone point me down the right path? This is what I've got at the moment: -

Re: NSString / NSURL

2010-08-28 Thread Amy Heavey
Thanks On 28 Aug 2010, at 4:02PM, David Duncan wrote: On Aug 28, 2010, at 7:58 AM, Amy Heavey wrote: 'm trying to do a fairly simple copy file process, so I select a file, and it gets copied to a new location. I seem to be mixing up NSString and NSURL as I keep getting an NSURL error, can

Mapping Model

2010-08-23 Thread Amy Heavey
Hi, I've got a core data app that I'm working on, and I started off with quite simple relationships. I've got a products entity, and a purchase order entity, which had many to m any relationships between them. I now need to be able to set a quantity for each product in each purchase

Re: Key Paths @count and mutablestrings

2008-11-05 Thread Amy Heavey
On 4 Nov 2008, at 17:32, Benjamin Stiglitz wrote: PurchaseOrder is an Entity, with a relationship called products to the PurchaseOrderItems Entity which lists the actual items on the order. I'd like a column in my Purchase Order tabel to display the number of items in the order, so I've

Re: Key Paths @count and mutablestrings

2008-11-04 Thread Amy Heavey
On 4 Nov 2008, at 17:32, Benjamin Stiglitz wrote: On Mon, Nov 03, 2008 at 06:55:24PM +, Amy Heavey wrote: … How do I access the count of a to-many relationship? You’ve got that backwards; you want [EMAIL PROTECTED] Fantastic! Thank You, Do you mean print out on a printer, or just

Key Paths @count and mutablestrings

2008-11-03 Thread Amy Heavey
Hi, I'm afraid I have a couple more questions :( Key Paths Bindings I've been quite sucessful in setting up my bindings using key paths, but now I'm trying to use @count. I have a table that displays a list of PurchaseOrders. PurchaseOrder is an Entity, with a relationship called products

Re: filtering a tableView from a pulldown

2008-10-30 Thread Amy Heavey
On 29 Oct 2008, at 14:42, I. Savant wrote: On Wed, Oct 29, 2008 at 4:49 AM, Amy Heavey [EMAIL PROTECTED] wrote: The pop up has selectedObject bound to Purchase Order Array Controller 2 selection.orderReference ... At the moment the content Object is bound to selection.orderReference

Re: filtering a tableView from a pulldown

2008-10-30 Thread Amy Heavey
On 30 Oct 2008, at 14:11, I. Savant wrote: The pop up has selectedObject bound to Purchase Order Array Controller 2 selection.orderReference ... At the moment the content Object is bound to selection.orderReference of the Purchase Order Array Controller. If you're binding the content

Re: filtering a tableView from a pulldown

2008-10-30 Thread Amy Heavey
On 30 Oct 2008, at 14:41, I. Savant wrote: Is it possible for you to post a pared-down version of your project somewhere for myself and others on the list to take a look at? I've uploaded the project folder to www.amygibbs.co.uk/xcode/powizard one thing to note, is that at the moment the

Re: filtering a tableView from a pulldown

2008-10-29 Thread Amy Heavey
On 28 Oct 2008, at 16:15, I. Savant wrote: The pulldown is bound as follows: content: arrangedObjects[PurchaseOrder Array Controller(NSArray Controller)] content values: Purchase ORder Array Controller arrangedObjects.orderReference These bindings seem fine. How about selection? One of

filtering a tableView from a pulldown

2008-10-28 Thread Amy Heavey
I have a pulldown button, and a tableview. They both seem to be displaying the correct data, but I'd like to filter the content of the tableview based on the selection in the pulldown button. I've tried all manner of binding combinations but it doesn't seem to work. I'm a real newbie so I

Re: filtering a tableView from a pulldown

2008-10-28 Thread Amy Heavey
I can't work out what the controllers and key paths should be. The pulldown is bound as follows: content: arrangedObjects[PurchaseOrder Array Controller(NSArray Controller)] content values: Purchase ORder Array Controller arrangedObjects.orderReference The Table view has 6 columns, one of

Re: Core Data adding new instance - creating relationship to existing instance

2008-09-20 Thread Amy Heavey
appropriately if it doesn't. You should also, by-the-by, be passing an NSError pointer to executeFetchRequest: and testing that after it returns to make sure an error didn't occur. On Sep 19, 2008, at 10:47 AM, Amy Heavey wrote: -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0

Core Data adding new instance - creating relationship to existing instance

2008-09-19 Thread Amy Heavey
I'm trying to add new instances of some entities, I've got it adding new objects, and I can create new relationships to new related objects, but I can't work out how to connect a new instance to an existing instance of an entity, eg I have items with relationship to upcs and categories. I

Re: referencing XML Data

2008-09-16 Thread Amy Heavey
On 14 Sep 2008, at 02:51, Nathan Kinsinger wrote: On Sep 13, 2008, at 12:50 PM, Amy Heavey wrote: I've got an NSXMLDocument *custdoc but I can't work out how to actually access the data in the document, I've looked at NSXMLElement, NSXMLParser, NSXMLNode but I just can't work out

Re: referencing XML Data

2008-09-16 Thread Amy Heavey
about not accepting nested functions which is why I took the NSXMLNode *customerNode onto it's own line, but I can't work out why I can't use a for loop? Many Thanks Amy Heavey On 14 Sep 2008, at 02:51, Nathan Kinsinger wrote: On Sep 13, 2008, at 12:50 PM, Amy Heavey wrote: I've got

Re: referencing XML Data

2008-09-16 Thread Amy Heavey
Thanks, I've been messing about with code all over the place, gone a little blind I think, however, I now get 2 errors on this line: 1 - nested functions are disabled, use -fnested-functions to renable 2 - syntax error before in NSArray *customerArray = [custdoc nodesForXPath:@.//customer

Re: referencing XML Data

2008-09-16 Thread Amy Heavey
it's to do with customerNode=[custNodes objectAtIndex:0]; but I can't work out what to use instead of objectAtIndex:0 Thank you for all your time, Many Thanks Amy On 16 Sep 2008, at 21:02, Nathan Kinsinger wrote: On Sep 16, 2008, at 1:24 PM, Amy Heavey wrote

referencing XML Data

2008-09-13 Thread Amy Heavey
**/user_email /customer How can I set an NSString *firstName to the value? I appreciate any help, Many Thanks Amy Heavey ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: referencing XML Data

2008-09-13 Thread Amy Heavey
Thats where i got most of the code from, and I have seen the post on his blog, but I still can't work it out! Many Thanks Amy Heavey On 13 Sep 2008, at 20:09, Hal Mueller wrote: The Amazone example in the new edition of the Hillegass book is a good place to start. He's also got

creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Hi, Sorry for the newbie question, I'm trying to write an app to access/edit data held in an sqlite file generated by another coredata app. I need to be able to access the data in ways not possible in the original app (not created by me) Following some advice from this list, I have

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
the tableviewdata creating new instances of the entity? Many Thanks Amy Heavey On 11 Sep 2008, at 18:05, Jamie Hardt wrote: How does the sqlite file relate to pulling XML from your website? I do not follow you there. On Sep 11, 2008, at 1:44 AM, Amy Heavey wrote: Hi, Sorry for the newbie

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Thanks, I have got access to the datamodel, I've imported it into my xcode project, it's how to actually create and write the entity that i'm stuck on, all the examples i've found seem to use bindings and add buttons, Many Thanks Amy Heavey On 11 Sep 2008, at 18:39, Jamie Hardt wrote

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Also, I don't have an array controller bound to the table view, the tableviews datasource outlet is set to the instance of my class that pulls the xml and processes it, Many Thanks Amy Heavey On 11 Sep 2008, at 18:39, Jamie Hardt wrote: Ah I see. XML on web - your program - sqlite

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Quite possibly - off to have go, Thank you, Many Thanks Amy Heavey On 11 Sep 2008, at 19:09, Jamie Hardt wrote: Oh... Is this what you mean? NSArray *objectsToLoopThru = [myArrayControllerWithRecordsFromTheWeb arrangedObjects]; foreach (id oneObjectInTable in objectsToLoopThru

Re: CoreData, SQLite and GUID

2008-08-28 Thread Amy Heavey
/client type solution) but it also needs to run when not connected to the internet/server. I'm a bit stuck at the moment on how to store the data for two situations, Thanks, Many Thanks Amy Heavey On Aug 27, 2008, at 6:30 PM, mmalc crawford wrote: On Aug 27, 2008, at 9:33 AM, Michael Ash

Re: CoreData, SQLite and GUID

2008-08-28 Thread Amy Heavey
Do you know where this is? I can't see it in my dev folder (10.4) Many Thanks Amy Heavey On Aug 28, 2008, at 6:20 PM, Aaron Burghardt wrote: There is a good Core Data command-line utility tutorial in the default developer documentation that shows the details of manually setting up