Re: Best practice example for a setup wizard?

2010-01-14 Thread Ian Piper
, at 9:54 , Ian Piper wrote: For one of my applications I want to do a check at startup to see whether a profile and password has been set for the current user, and if not to take them through a setup wizard. I'm sure I can mug my way through writing this but it feels like the kind of thing

Best practice example for a setup wizard?

2010-01-13 Thread Ian Piper
be an example illustrating best practice. Can anyone point me at some documentation or examples that might help? Thanks, Ian. -- Ian Piper ianpi...@mac.com -- If I'd asked people what they wanted, they would have said faster horses (Henry Ford

How do you use an Application ID for an iPhone application

2009-11-24 Thread Ian Piper
Hi, I am a bit baffled by how I am supposed to use an Application ID for an iPhone app. I have registered on the portal and have an Application ID which I can see within Xcode in my provisioning profile. It is a 10-character string followed by .* From the Developer documents it appears that

Re: How do you use an Application ID for an iPhone application

2009-11-24 Thread Ian Piper
have at least one for development and another for ad hoc builds. Later you'll need another for store or enterprise distribution. On Nov 24, 2009, at 6:07 PM, Ian Piper wrote: Hi, I am a bit baffled by how I am supposed to use an Application ID for an iPhone app. I have registered

Example of categorized lists in a Mail-type interface

2009-11-15 Thread Ian Piper
Hi all, I would appreciate it if someone could point me at an example that I could use as the basis for building a categorized list similar to the mail folders display in Mail. I have a data model that has an entity called category and another called item. These have a one to many

Re: Example of categorized lists in a Mail-type interface

2009-11-15 Thread Ian Piper
On 16 Nov 2009, at 01:09, Rob Keniger wrote: On 16/11/2009, at 4:38 AM, Ian Piper wrote: I would appreciate it if someone could point me at an example that I could use as the basis for building a categorized list similar to the mail folders display in Mail. This should help: http

Adding a vertical scrollbar to a multiline textfield

2009-11-10 Thread Ian Piper
Hi all, I hope someon can advise as to the best way to do what I want. I have a multiline textfield that receives a very long piece of text. I wanted to add a vertical scrollbar. I tried putting the multiline textfield inside a scroll view but I'm not sure how you would tell the latter

EXC_BAD_ACCESS mystery

2009-11-10 Thread Ian Piper
Hi all, Can anyone advise a good strategy for tracking down EXC_BAD_ACCESS crashes? I have an application that I can run quite happily two out of three times. Then it will crash with this error. By this I mean I can do Build and Run successively with no problems and then it will crash -

Re: EXC_BAD_ACCESS mystery

2009-11-10 Thread Ian Piper
To Jens and Ryan, Thanks for the pointers - very helpful. Ian. -- ___ 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

AHGoToPage function

2009-11-07 Thread Ian Piper
Hi all, I hope someone can illuminate me. I have been trying to follow the Developer Documentation example for AHGoToPage. I have connected a help button in the UI to an action called loadHelpForJournalEntry. This is intended to load a help file called index.html. The help files

Re: AHGoToPage function

2009-11-07 Thread Ian Piper
On 8 Nov 2009, at 01:47, Ian Piper wrote: Hi all, I hope someone can illuminate me. Erm, I just illuminated myself. First, I was typing AHGoToPage, not AHGotoPage (though I think my version looks nicer). Second, I hadn't added the Carbon Framework. Now that I have done both, it works

Re: Handling calculations with many decimal places

2009-11-03 Thread Ian Piper
On 3 Nov 2009, at 21:22, Greg Guerin wrote: Ian Piper wrote: I want to be able to display potentially a large number of decimal places in the result (hundreds at least). Explanation and many links to libs: http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic Any lib written in C

Getting a handle on inf

2009-10-26 Thread Ian Piper
Hi all, Following up on my query about unit tests yesterday... I am writing another test checking boundary conditions for a calculation. In the normal running program I am feeding a very large number (1000) into one text field and the result displayed

Re: Getting a handle on inf

2009-10-26 Thread Ian Piper
On 26 Oct 2009, at 18:45, Greg Parker wrote: On Oct 26, 2009, at 11:26 AM, Ian Piper wrote: So I am guessing that when I get a float displayed as inf this is not the string it seems to be. Also, it looks like the string value of whatever is coming back is not something that I can use. Can

Re: Getting a handle on inf

2009-10-26 Thread Ian Piper
On 26 Oct 2009, at 19:46, Ken Thomases wrote: You want STAssertEqualObjects, here. You want to compare for equal value, not identity, which is what STAssertEquals does. Greg, Ken, Thanks, that is what I was looking for. Great help, thank you. Ian. --

Problem writing unit tests - Incompatible types in initialization

2009-10-25 Thread Ian Piper
Hi, I'm having a problem getting a unit test to run. It's quite a simple one, based on a sample project that I developed and that does actually work. It's loosely based on the Apple Temperature Converter project. I have a Converter class that has a float property called

Re: Problem writing unit tests - Incompatible types in initialization

2009-10-25 Thread Ian Piper
On 25 Oct 2009, at 20:13, Dave DeLong wrote: On Oct 25, 2009, at 2:08 PM, Ian Piper wrote: It also has a method called convertCToF that ... returns the converted temperature, also as a float. NSNumber *newTemperatureInF = [testConverter convertCToF]; // This is where I get the error

Re: Calculating a total from a collection of numeric attributes

2009-10-18 Thread Ian Piper
On 18 Oct 2009, at 15:45, I. Savant wrote: On Oct 17, 2009, at 7:40 PM, Ian Piper wrote: I have a Core Data entity that has an attribute called charge (stored as a float). So I am storing a number of records each of which has a charge. I simply want to be able to show a running total

Re: Extract plain text content from a Text View

2009-10-17 Thread Ian Piper
On 17 Oct 2009, at 00:46, Charles Srstka wrote: On Oct 16, 2009, at 5:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably

Re: Extract plain text content from a Text View

2009-10-17 Thread Ian Piper
On 17 Oct 2009, at 05:18, Jens Alfke wrote: On Oct 16, 2009, at 3:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably

Calculating a total from a collection of numeric attributes

2009-10-17 Thread Ian Piper
Hi all, I have a Core Data entity that has an attribute called charge (stored as a float). So I am storing a number of records each of which has a charge. I simply want to be able to show a running total of charges as I add or remove items. I was hoping that I might be able to use a

Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
Hi all, Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images? I want to figure out a way to build a search predicate that will allow me to search a Text View and I think this is likely to be the only

Re: Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
On 16 Oct 2009, at 20:51, I. Savant wrote: On Oct 16, 2009, at 3:44 PM, I. Savant wrote: I want to figure out a way to build a search predicate that will allow me to search a Text View and I think this is likely to be the only way. Seems a bit odd. Could you elaborate? Let *me*

EXC_BAD_ACCESS in a Core Data application

2009-09-04 Thread Ian Piper
Hi all, I have been putting together a Core Data application that has three windows. I wanted to control the appearance and disappearance of these windows during the course of the application, so added menu items and buttons with the action makeKeyAndOrderFront. However, I found that the

Re: Ideas required on testing an application install

2009-07-19 Thread Ian Piper
On 26 Jun 2009, at 5:30am, Bill Bumgarner wrote: It'll be interested to see what kind of performance one achieves when booting from an SD card. Given their price ($40 for a class-6 SDHC card), it would be an attractive and convenient option. Certainly, I know that when I have a moment, I'm

Re: Ideas required on testing an application install

2009-07-19 Thread Ian Piper
On 19 Jul 2009, at 6:46pm, Andy Lee wrote: On Jul 19, 2009, at 7:45 AM, Ian Piper wrote: How do you get the SD card to act as a bootable drive? Did you try Google? A search for boot sd card macbook turned up this as the first hit: http://arstechnica.com/apple/news/2009/06/boot-from

Solved: Implementing previous, next, first, last controls in Core Data applications

2009-07-13 Thread Ian Piper
| 01926 811383 On 12 Jul 2009, at 2:48pm, I. Savant wrote: On Jul 12, 2009, at 8:51 AM, Ian Piper wrote: Can anyone tell me whether there are any plug-ins or examples that show how to implement buttons to move forward and backward through a record set in a Core Data application? I am

Implementing previous, next, first, last controls in Core Data applications

2009-07-12 Thread Ian Piper
Hi all, Can anyone tell me whether there are any plug-ins or examples that show how to implement buttons to move forward and backward through a record set in a Core Data application? I am thinking of having a window that simply presents one record from a collection, with forward,

Reading and writing rtf(d) files

2009-07-02 Thread Ian Piper
bump bump :-) Ian. -- ianpi...@mac.com 07590 685840 | 01926 811383 Begin forwarded message: From: Ian Piper ianpi...@mac.com Date: 1 July 2009 3:53:52 pmBST To: Cocoa-dev@lists.apple.com Subject: Reading and writing rtf(d) files Hi all, I have a question about reading and writing file

Reading and writing rtf(d) files

2009-07-01 Thread Ian Piper
Hi all, I have a question about reading and writing file types. I have been following an old Apple text editor example (http://developer.apple.com/documentation/Cocoa/Conceptual/TextArchitecture/Tasks/TextEditor.html ), and want to extend it to allow me to read and write rtf files. At

Can't understand this build error

2009-05-24 Thread Ian Piper
Hi all, I hope someone can help me shine some light on this error. I have two errors coming up on build, but they are not highlighted anywhere in the code as is normally the case with warnings and errors. This is what I see in the Errors and Warnings list: (In red)