Re: original image size is not retained when it is exported as PDF using CGImageDestinationRef

2011-03-01 Thread Kyle Sluder
On Feb 28, 2011, at 8:29 PM, Deepa wrote: > > The CoreGraphics-Dev is not getting listed under Apple Mailing lists. Could > you please mention the steps to register to this category of Apple Mailing > list? I think he meant quartz-dev. --Kyle Sluder___

Re: Static Analyzer is confusing me

2011-03-01 Thread Quincey Morris
On Feb 28, 2011, at 22:47, Gerriet M. Denkmann wrote: > Why does this error message go away when I add: > #define MAKE_BUG_DISAPPEAR1 3 > > Why does it NOT go away with: > #define MAKE_BUG_DISAPPEAR1 2 // or anything less than 3 ? What is so > magical about 3? I'd guess that the static anal

NSAttributedString crashes

2011-03-01 Thread Gerriet M. Denkmann
NSMutableAttributedString *attributedString = [ [ NSMutableAttributedString alloc ] initWithString: firstChar ]; [ attributedString fixFontAttributeInRange: NSMakeRange(0,[ attributedString length ]) ]; NSFont *aFont = [ attributedString attribute: NSFontAttributeName atIndex: 0 effectiveRang

Re: How to find unencoded characters

2011-03-01 Thread Gerriet M. Denkmann
On 28 Feb 2011, at 19:36, cocoa-dev-requ...@lists.apple.com wrote: > There are quite a few characters, which OS X cannot print. > E.g. ›« ≈ 0x2b809 (CJK Unified Ideographs Extension D) > > I would like to have a function or method like: > BOOL myComputerCanDisplayThisUnicodeCodePoint( unsigned

Re: NSAttributedString crashes

2011-03-01 Thread Kyle Sluder
On Tue, Mar 1, 2011 at 12:45 AM, Gerriet M. Denkmann wrote: > So obviously NSAttributedString does NOT return [ [ aFont retain ] > autorelease ] but just some internal pointer. > > Is this documented somewhere? In the Memory Management Programming Guide: http://developer.apple.com/library/mac/#d

Subview getting clipped by its parent view when scale transformation done

2011-03-01 Thread Sivakumar Kandappan Singaravadivelu
My project involves *4 independent views in screens*. In this case,apple documentation states us to have only *one viewcontroller and have 4 NSObject * to control the different views.I didnt use Interface builder to create the views and NSObject, I didnt by declaring programmatically. In one of the

Re: How to find unencoded characters

2011-03-01 Thread Matt Gough
>> But as the font name "LastResort" is nowhere documented (or is it?), Apple >> is free to change it to "LionsLastResort" this summer. http://developer.apple.com/fonts/LastResortFont/ I doubt they'd rename it, seems they just extend it as necessary: http://en.wikipedia.org/wiki/Fallback_font#A

Re: NSAttributedString crashes

2011-03-01 Thread Gerriet M. Denkmann
On 1 Mar 2011, at 15:53, Kyle Sluder wrote: > On Tue, Mar 1, 2011 at 12:45 AM, Gerriet M. Denkmann > wrote: >> So obviously NSAttributedString does NOT return [ [ aFont retain ] >> autorelease ] but just some internal pointer. >> >> Is this documented somewhere? > > In the Memory Management P

Re: NSAttributedString crashes

2011-03-01 Thread Kyle Sluder
On Tue, Mar 1, 2011 at 1:15 AM, Gerriet M. Denkmann wrote: > As far as I can see, this article talks about different ways to implement > setters and getters. > Do you want to imply that, whenever I get some object from AppKit, I have to > retain it until I no longer need it? You got the font fr

Re: original image size is not retained when it is exported as PDF using CGImageDestinationRef

2011-03-01 Thread Deepa
Thank you Kyle, David. Regards, Deepa On 01-Mar-2011, at 1:31 PM, Kyle Sluder wrote: > On Feb 28, 2011, at 8:29 PM, Deepa wrote: > >> >> The CoreGraphics-Dev is not getting listed under Apple Mailing lists. Could >> you please mention the steps to register to this category of Apple Mailing

Eviction Policy in NSCache and NSDiscardableContent

2011-03-01 Thread Dalmazio Brisinda
I was looking at the NSCache class and the NSDiscardableContent protocol for an LRU-type cache. However the documentation doesn't say anything specific about the eviction policy used (apart from setting total cost and count limits), only that: "The NSCache class incorporates various auto-remova

animating addSubview with iOS4

2011-03-01 Thread Martin Linklater
Hi - I'm having trouble getting Core Animation to animate a UIButton appearing on my parent view. My old code did this: [self.view addSubview:newButton]; The button appeared straight away and works fine. Now, I'm trying to animate the appearance of this button and I just can't seem to get it w

Re: animating addSubview with iOS4

2011-03-01 Thread Luke Hiesterman
You can only animate properties documented as "animatable". Try adding your subview to its superview with an alpha of 0.0 and then animating the alpha to 1.0. Luke On Mar 1, 2011, at 8:32 AM, Martin Linklater wrote: > Hi - I'm having trouble getting Core Animation to animate a UIButton > ap