Re: NSDocument Serialization (-performSynchronousFileAccessUsingBlock: and friends)

2011-09-28 Thread Kyle Sluder
On Wed, Sep 28, 2011 at 10:55 PM, Kyle Sluder wrote: > I'd really appreciate if the documentation spelled out exactly how > NSDocument uses these methods. To give an example of a specific NSDocument usage that I'd like to know about: how does asynchronous saving use -performAsynchronousFileAccess

Re: Daemon safe SMTP frameworks

2011-09-28 Thread Aaron Scott
Thanks Jens, I use a GUI app that connects to the daemon (foundation tool) and sets the SMTP server info. I have just found skpsmtpmessage which looks like it might do the job. I just have to modify it as it was built for iOS. Thanks, Aaron On 29/09/2011, at 4:13 PM, Jens Alfke wrote:

Re: Daemon safe SMTP frameworks

2011-09-28 Thread Jens Alfke
On Sep 28, 2011, at 10:41 PM, Aaron Scott wrote: > I am build a foundation tool that needs to send email alerts. Does anyone > know the best/easiest way to accomplish this. I can't seem to find any daemon > safe SMTP frameworks. In the past I’ve simply invoked /usr/bin/sendmail using NSTask.

NSDocument Serialization (-performSynchronousFileAccessUsingBlock: and friends)

2011-09-28 Thread Kyle Sluder
I'm working on a document-based application, and am a bit befuddled by -performSynchronousFileAccessUsingBlock:. The documentation says that "NSDocument itself consistently uses this mechanism around invocations of the following methods:" and lists methods including -fileType, -fileURL, etc. The do

Daemon safe SMTP frameworks

2011-09-28 Thread Aaron Scott
I am build a foundation tool that needs to send email alerts. Does anyone know the best/easiest way to accomplish this. I can't seem to find any daemon safe SMTP frameworks. Any help would be greatly appreciated. Thanks, Aaron. ___ Cocoa-dev mailing

Re: Receiving Crash Reports

2011-09-28 Thread Tito Ciuro
I would also consider plcrashreporter (iPhone and Mac OS X): http://code.google.com/p/plcrashreporter/ -- Tito On Sep 28, 2011, at 5:07 PM, koko wrote: > When a user of my app experiences a crash (arrggh) I would like intercept the > Apple provided crash report window with the 'Send to Apple"

Re: Receiving Crash Reports

2011-09-28 Thread Graham Cox
On 29/09/2011, at 10:07 AM, koko wrote: > Is there a way to do this? No, but bear in mind that crash reports sent to Apple are routed to your iTunes Connect account IF your app is available on the App Store. --Graham ___ Cocoa-dev mailing list (C

Re: Receiving Crash Reports

2011-09-28 Thread Jens Alfke
On Sep 28, 2011, at 5:07 PM, koko wrote: > When a user of my app experiences a crash (arrggh) I would like intercept the > Apple provided crash report window with the 'Send to Apple" button so I can > have it sent to me. > > Is there a way to do this? There’s nothing built-in, but there are a

Re: Core Data : Undo Delete : Cannot fulfill a fault

2011-09-28 Thread Dave Fernandes
I tried to reproduce this problem in my app and couldn't. I got these types of exceptions in the past when I was using KVO with my managed objects, but I no longer do that. If you aren't either, then I don't have any other suggestions. In my app, I have parent objects with many child objects tha

Re: Validating form input w/o core data

2011-09-28 Thread Andre Masse
It's in NSFormatter. You just override it in your subclass. Cheers, Andre Masse William Squires September 28, 2011 20:48 Okay, but where does the code go? Is this a delegate method

Receiving Crash Reports

2011-09-28 Thread koko
When a user of my app experiences a crash (arrggh) I would like intercept the Apple provided crash report window with the 'Send to Apple" button so I can have it sent to me. Is there a way to do this? -koko___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Lee Ann Rucker
On Sep 28, 2011, at 4:26 PM, Quincey Morris wrote: > On Sep 28, 2011, at 15:50 , Philip McIntosh wrote: > >> I want the number in the display (which is a string representation of the >> number) to be formatted as it is entered not after any "return" or >> "calculate" keys are pressed. I can ge

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Quincey Morris
On Sep 28, 2011, at 16:26 , Quincey Morris wrote: > based on a belief that the difference is small enough to be either really > confusing or annoying Oops, I meant "based on your belief that the difference is small enough to *not* be either really confusing or annoying".___

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Quincey Morris
On Sep 28, 2011, at 15:50 , Philip McIntosh wrote: > I want the number in the display (which is a string representation of the > number) to be formatted as it is entered not after any "return" or > "calculate" keys are pressed. I can get it to format and display the string > correctly "after" s

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Kyle Sluder
On Wed, Sep 28, 2011 at 3:50 PM, Philip McIntosh wrote: >> user input builds up a string in the UITextView > > Yes and I want the grouping symbols and decimal separator to show up as the > string is built up. Okay, I understand now. As the user is entering text, they are building a string of th

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Philip McIntosh
> Message: 11 > Date: Wed, 28 Sep 2011 09:28:42 -0700 > From: Kyle Sluder > Subject: Re: Numeric Entry and Formatting With NSNumberFormatter Won't > Append Zeros > To: Philip McIntosh > Cc: "cocoa-dev@lists.apple.com" > Message-ID: <053c1e04-9ab8-4a0d-a7ce-62580bde0...@gmail.com> > Conten

Re: debugging crashes in dyld?

2011-09-28 Thread Martin Wierschin
> Crashes inside dyld or libobjc during library load often has one of two > causes: > 1. A library binary on disk or in the dyld shared cache is corrupted. > 2. A memory error earlier in the app corrupted a data structure, and that > data structure went unused until library load time. Thank you

Re: Validating form input w/o core data

2011-09-28 Thread Andre Masse
You can use formatters for this too. Here's the code I'm using (modify the characters you need to allow in addCharactersInString:). // allow only digits and +-*/. - (BOOL)isPartialStringValid:(NSString **)partialStringPtr proposedSelectedRange:(NSRangePointer)proposedSelRangePtr

Re: Validating form input w/o core data

2011-09-28 Thread Lee Ann Rucker
On Sep 27, 2011, at 6:41 PM, William Squires wrote: > Hi, > I have a need for a complex data-entry form (window). Some fields are > supposed to only accept alpha characters (upper or lower), some are supposed > to only take integers, others to only take floats (but no negative values > allowe

Re: controller question

2011-09-28 Thread Ariel Feinerman
I try to expline the problem. There is m_array (M) loaded from the file in the one nib, then there is other two view controllers' nibs (C) with views (V). One of them uses array controller to show and delete only, when the other is used for insertion only throw dragging therefor no need in control

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Kyle Sluder
On Sep 27, 2011, at 5:33 PM, Philip McIntosh wrote: > I don't see anything wrong with pulling a string off a display, formatting it > as a number, converting the number back into a string and redisplaying it. As > I said the formatter works as expected with any number I give it starting out >

(Problems) Scaling NSViews with scaleUnitSquareToSize

2011-09-28 Thread Eric Wing
I am working on a code base that happens to be using scaleUnitSquareToSize. I think the intent is to actually scale the view to various scale factors like 2 and .5. I have been in the process of making said view layer-backed (Core Animation) and adding subviews to it. I have been seeing a lot of r

Re: Validating form input w/o core data

2011-09-28 Thread Graham Cox
On 28/09/2011, at 11:41 AM, William Squires wrote: > Is there a general way of validating the contents of a field before it > resigns first responder status? The preferred, supported way is to use a NSFormatter attached to the field. This has the ability to fully constrain and convert values