Re: Mail Frameworks

2010-06-02 Thread Simon Wolf
d a problem with spaces in attachment names. Again, you can read about it in their forums at: http://www.mulle-kybernetik.com/forum/viewtopic.php?f=5&t=59 However the framework is easy to use and has been reliable and I worked around the last

Re: CAScrollLayer scrollToPoint: suppress animation

2010-05-11 Thread Simon Wolf
) kCFBooleanTrue forKey: > kCATransactionDisableActions]; > [CATransaction commit]; Try something like this: [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:0.0f] forKey:kCATransactionAnimationDuration]; [scrollLayer scrollToPoint:...]; [CATransaction commit

Re: Appropriate -setWantsLayer: timing

2010-02-19 Thread Simon Wolf
On 19 Feb 2010, at 03:50, Scott Anguish wrote: > > On Feb 16, 2010, at 5:45 PM, Simon Wolf wrote: > >>> >>> I'm wondering when writing a layer hosting view, when the most appropriate >>> time is to set the layer and call -setWantsLayer:YES? >>&g

Re: Appropriate -setWantsLayer: timing

2010-02-18 Thread Simon Wolf
initWithFrame: and in -awakeFromNib without any problems. At the very least you could check in -awakeFromNib to see if the view is already layer-backed and only call setWantsLayer: if it is not. Simon Wolf Website: http://www.ottersoftware.com Twitter: http://www.twitter.com/sgaw iChat: simo

Re: Appropriate -setWantsLayer: timing

2010-02-18 Thread Simon Wolf
h may not (in my experience ever) be in the current run loop. Simon Wolf Website: http://www.ottersoftware.com Twitter: http://www.twitter.com/sgaw On 16 Feb 2010, at 20:52, Keith Duncan wrote: > I'm wondering when writing a layer hosting view, when the most appropriate > time is to s

Re: NSDateFormatter strangeness

2008-11-18 Thread Simon Wolf
it's clear that there is a problem converting from the string to date. Is there an issue with creating static NSDateFormatters? Its curious because some of the date formatters in my app work as expected, others do not. Set your date format string to "dd/MM/" [formatter setD

Re: Cocoa Programming iPing exercise

2008-10-02 Thread Simon Wolf
On 1 Oct 2008, at 18:25, Shawn Protsman wrote: I finally decided to take a dive into Objective-C with Xcode. I'm looking at the iPing example in Hillegass' latest book, Cocoa Programming. iPing works fine as coded in the book. Next, I decided to replace `ping` with a binary I wrote called `

Re: URL Text Color in NSTextView

2008-08-11 Thread Simon Wolf
On 11 Aug 2008, at 14:27, Uli Kusterer wrote: On 11.08.2008, at 14:45, Simon Wolf wrote: All of my attempts to change the foreground color via NSForegroundColorAttributeName have failed so far as have attempts to set the color in the Credits.html file (CSS works for standard text, not

URL Text Color in NSTextView

2008-08-11 Thread Simon Wolf
I am using an NSTextView to display the contents of a Credits.html file. The credits file contains URLs which I am specifying as HTML links. For example, one line in my Credits.html file may be: "Distributed under a http://creativecommons.org/licenses/by/3.0/ " target="_blank">Creative Commo

Re: DirWatch

2008-05-23 Thread Simon Wolf
On 23 May 2008, at 00:33, Jerry Krinock wrote: On 2008 May, 22, at 15:45, Robert Cerny wrote: On 23.5.2008, at 0:32, Lorenzo wrote: I need to watch at a given folder and check whenever a new file has been copied therein. At the beginning, I fired a timer periodically getting the list of

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Simon Wolf
On 20 May 2008, at 01:18, Brad Gibbs wrote: On pages 36-7 of Aaron Hillegass' new book, he provides sample code for a Foundation Tool called Lottery. The code is below: NSMutableArray *array; array = [[NSMutableArray alloc] init]; int i; for (i = 0; i < 10; i++) {

Re: NSNumberFormatter Changes Reflected In NSTextField

2008-05-12 Thread Simon Wolf
On 9 May 2008, at 16:59, Simon Wolf wrote: I have an NSTextField with an associated NSNumberFormatter which I am using to format the values shown to a specific number of decimal places. I have a second NSTextField which I am using to display and edit the number of decimal places that I

NSNumberFormatter Changes Reflected In NSTextField

2008-05-09 Thread Simon Wolf
I have an NSTextField with an associated NSNumberFormatter which I am using to format the values shown to a specific number of decimal places. I have a second NSTextField which I am using to display and edit the number of decimal places that I want shown and I have used the controlTextDidEn

Re: NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
On 9 May 2008, at 16:11, Jens Alfke wrote: On 9 May '08, at 6:41 AM, Simon Wolf wrote: So much to learn ... but what a fantastically refreshing change from VB6 and .Net. So I gather :) I just read this excellent article on ArsTechnica by a Windows developer who's recently switc

Re: NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
On 9 May 2008, at 12:48, Paul Sargent wrote: On 9 May 2008, at 10:10, Simon Wolf wrote: I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only

Re: NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
dit Active Target" then under the properties tab you'll see "Main Nib Class". This is where is it defined. Stephan Le 9 mai 08 à 11:10, Simon Wolf a écrit : I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions.

NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only now starting to dip my toe into XCode and I think that I'm going to have loads of questions, some practica