Re: Understanding layer-backed views

2011-06-21 Thread Graham Cox
On 22/06/2011, at 2:21 PM, Scott Anguish wrote: >> I'm getting confused and frustrated by Core Animation layers (again). Mac OS. >> >> >> If I simply add a NSView to a window in IB, not subclassed, but turn on Core >> Animation layer for that view and set a background colour, shouldn't it >>

Re: Understanding layer-backed views

2011-06-21 Thread Scott Anguish
On Jun 21, 2011, at 9:57 PM, Graham Cox wrote: > I'm getting confused and frustrated by Core Animation layers (again). Mac OS. > > > If I simply add a NSView to a window in IB, not subclassed, but turn on Core > Animation layer for that view and set a background colour, shouldn't it > appear

Help Book question

2011-06-21 Thread Eric Gorr
This should be an easy question for someone to answer. I've got a sample application demonstrating the problem at: http://ericgorr.net/cocoadev/helpbooktest.zip After launching the application, bring up the help book from the help menu. The first about link is anchor based and should link to t

Understanding layer-backed views

2011-06-21 Thread Graham Cox
I'm getting confused and frustrated by Core Animation layers (again). Mac OS. If I simply add a NSView to a window in IB, not subclassed, but turn on Core Animation layer for that view and set a background colour, shouldn't it appear with that colour in the window? That's my expectation, but th

Re: Loop between observers with KVO from UIScrollView

2011-06-21 Thread Quincey Morris
On Jun 21, 2011, at 07:16, talesp wrote: > 1.: should I just check if the object is different from self? Or some more > "complicated"? And what should I check as keyPath? In general, different classes can use the same property names, and keyPath refers to a property name. So, you need to be cer

Re: Agent that displays a window with textbox

2011-06-21 Thread Jens Alfke
On Jun 21, 2011, at 2:11 AM, Nick wrote: > But if an application is an agent, when i press "Control+V", the text can't > be pasted in the textbox (it can be passed using a context menu, though) [You mean Command-V, right?] I think this depends on what you mean by “agent”. In Apple’s terminology

Re: Progress Indicators Spin vs Bar

2011-06-21 Thread James Merkel
Thanks to all that provided code examples and suggestions on programming for concurrency. I am reading the docs to learn more on this subject. Jim Merkel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: Loop between observers with KVO from UIScrollView

2011-06-21 Thread talesp
Thank you for the answer. It just worked! About the notes: 1.: should I just check if the object is different from self? Or some more "complicated"? And what should I check as keyPath? 2.: if I send a context parameter from observer (the context can be a NSString for example, right?), should

Re: attribute is an array?

2011-06-21 Thread Fritz Anderson
On 21 Jun 2011, at 6:48 AM, Amy Heavey wrote: > 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.

Re: attribute is an array?

2011-06-21 Thread Roland King
On 21-Jun-2011, at 7:48 PM, Amy Heavey wrote: > 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

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]: un

Agent that displays a window with textbox

2011-06-21 Thread Nick
Hi Normal applications' windows allow to copy/paste text into textboxes that are located in these windows. But if an application is an agent, when i press "Control+V", the text can't be pasted in the textbox (it can be passed using a context menu, though) Is it me that I am doing anything wrong? O