Re: Creating a Big and Resizable Question Mark in the Middle of a View

2010-08-15 Thread Georg Seifert
Or draw an attributed string in drawRect: calculate the font size from to the view size... Georg Am 15.08.2010 um 06:55 schrieb Peter Zegelin: > Yep that worked: > > NSString *file = [[NSBundle mainBundle]pathForResource:@"Question Mark" > ofType:@"pdf"]; > NSData *data = [NSData

Re: Recursive file remove

2010-08-15 Thread Ken Thomases
On Aug 14, 2010, at 11:36 PM, Michael Ash wrote: > First is the more obvious one, where you have the semantics of doing > an 'rm' on a directory without passing the -r flag. If the directory > is empty, it's deleted. If it's not, the command fails. Not to flog a dead horse, but 'rm' doesn't do th

Re: Recursive file remove

2010-08-15 Thread Michael Ash
On Sun, Aug 15, 2010 at 12:05 PM, Ken Thomases wrote: > On Aug 14, 2010, at 11:36 PM, Michael Ash wrote: > >> First is the more obvious one, where you have the semantics of doing >> an 'rm' on a directory without passing the -r flag. If the directory >> is empty, it's deleted. If it's not, the com

Re: who stole my UIView?

2010-08-15 Thread Matt Neuburg
On or about 8/13/10 9:53 AM, thus spake "David Duncan" : > -[UIView layer] has this to say: "Warning: Since the view is the layer¹s > delegate, you should never set the view as a delegate of another CALayer > object. Additionally, you should never change the delegate of this layer." My point with

Re: who stole my UIView?

2010-08-15 Thread Kyle Sluder
On Sun, Aug 15, 2010 at 12:08 PM, Matt Neuburg wrote: > My point with regard to this warning is merely that I was never *in* the > UIView class documentation. The warning needs to be, or be repeated, in the > CALayer class documentation. But you were mucking with a UIView's layer tree. I would as

[ANN] CHLayoutManager

2010-08-15 Thread Dave DeLong
Hey everyone, At work the other day I was pining for a CALayoutManager that worked on NSViews, because we're localizing our UI in code and have to do some simple rearrangement to support long button names, etc. Shifting things around in code is possible, though tedious, even with category meth

Re: who stole my UIView?

2010-08-15 Thread Matt Neuburg
On or about 8/15/10 12:40 PM, thus spake "Kyle Sluder" : > Would you have preferred I wouldn't have preferred anything. I think the whole thing is brilliant. I am merely making a pedagogical suggestion about how the documentation might be improved. The documentation as it stands seems to invite t

Re: Recursive file remove

2010-08-15 Thread ronald b. kopelman
>> First is the more obvious one, where you have the semantics of doing >> an 'rm' on a directory without passing the -r flag. If the directory >> is empty, it's deleted. If it's not, the command fails. > > Not to flog a dead horse, but 'rm' doesn't do that. Without '-r', rm always > fails on a

Re: isTemporaryID unrecognized selector?

2010-08-15 Thread Ferhat Ayaz
thank you for the link. It is a must read TN. Ferhat On Aug 15, 2010, at 6:13 AM, Sean McBride wrote: > Ferhat Ayaz (co...@me.com) on 2010-08-15 21:28 said: > >> It seems like a memory management problem. I'm always building with >> analyze by default. There is no hints produced by the analyzer

Using Apple icons

2010-08-15 Thread Ryan Joseph
I'm sorry for posting this off-topic but I can't find a single list at http://lists.apple.com/mailman/listinfo that is relevant to Apple policy questions so I thought I could start here. What is Apples policy on using their icons in commercial application icons? I wanted to use some of the comm

Re: Creating a Big and Resizable Question Mark in the Middle of a View

2010-08-15 Thread Ken Ferry
Hi Peter, That code is fine, but FYI, it can be written more simply and with perhaps slightly improved semantics: [imageView setImage:[NSImage imageNamed:@"Question Mark"]]; Semantically, it's very similar, but the above will not actually read the file from disk until the image data is neede

Re: MOC Migrations Using .xcdatamodeld

2010-08-15 Thread Jerry Krinock
On 2010 Aug 13, at 12:08, Brad Gibbs wrote: > I'm having some real problems performing my first migration. I've been looking at your post for a couple days but haven't yet found time to study it in detail, which is what it would take, and I probably wouldn't know the answers either. So I'll j

Re: Creating a Big and Resizable Question Mark in the Middle of a View

2010-08-15 Thread Peter Zegelin
Ken, That's brilliant and works like a charm. On 16/08/2010, at 12:36 PM, Ken Ferry wrote: > Hi Peter, > > That code is fine, but FYI, it can be written more simply and with perhaps > slightly improved semantics: > > [imageView setImage:[NSImage imageNamed:@"Question Mark"]]; > >