How to create pdf with alpha

2011-10-15 Thread Gerriet M. Denkmann
i want to create a pdf with a clear (transparent) background, but cannot. The pdf is created, looks ok, but has a white background. What am I missing? Here the code: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { NSRect rect = NSMakeRect(0,0,99,99); GmdVi

Re: How to create pdf with alpha

2011-10-15 Thread Graham Cox
On 15/10/2011, at 11:55 PM, Gerriet M. Denkmann wrote: > The pdf is created, looks ok, but has a white background. Are you sure? How are you viewing it? In Preview, you get a white background unless you check "Show Image Background" in the View menu. --Graham ___

Re: How to create pdf with alpha

2011-10-15 Thread Gerriet M. Denkmann
On 15 Oct 2011, at 20:00, Graham Cox wrote: > > On 15/10/2011, at 11:55 PM, Gerriet M. Denkmann wrote: > >> The pdf is created, looks ok, but has a white background. > > > Are you sure? No. > How are you viewing it? Preview. > In Preview, you get a white background unless you check "Show Im

Re: Blocks vs. life, the universe and everything

2011-10-15 Thread Dave Zarzycki
On Oct 14, 2011, at 11:44 PM, Jean-Daniel Dupas wrote: > > Le 15 oct. 2011 à 01:45, Quincey Morris a écrit : > >> On Oct 14, 2011, at 14:27 , Greg Parker wrote: >> >>> Do you actually use exceptions in your code, or do you follow the Cocoa >>> convention that exceptions are for programmer erro

Re: Blocks vs. life, the universe and everything

2011-10-15 Thread Seth Willits
On Oct 14, 2011, at 2:27 PM, Greg Parker wrote: > Currently, a dispatch-provided autorelease pool is not drained until the > dispatch worker thread goes idle. If you keep a dispatch queue continuously > busy with dispatch work that generates autorelease pool garbage, then you > might run into t

Re: Blocks vs. life, the universe and everything

2011-10-15 Thread Dave Zarzycki
On Oct 15, 2011, at 12:10 PM, Seth Willits wrote: > Unrelated, when did @autoreleasepool pop in? I don't remember if I knew about > that or not. It's _used_ once in the Obj-C Programming Language guide, but > never documented anywhere I can find. @autoreleasepool {} is new with Xcode 4.2 and Ap

Re: Blocks vs. life, the universe and everything

2011-10-15 Thread Jean-Daniel Dupas
Le 15 oct. 2011 à 21:10, Seth Willits a écrit : > On Oct 14, 2011, at 2:27 PM, Greg Parker wrote: > >> Currently, a dispatch-provided autorelease pool is not drained until the >> dispatch worker thread goes idle. If you keep a dispatch queue continuously >> busy with dispatch work that generat

Re: 'Static' items in an NSOutlineView

2011-10-15 Thread Koen van der Drift
Thanks for the pointers. I also just found this sample code from Apple: ,http://developer.apple.com/library/mac/#samplecode/SidebarDemo/> They don't use CoreData but I may be able to adapt it. - Koen. On Oct 14, 2011, at 2:51 PM, Quincey Morris wrote: > On Oct 14, 2011, at 09:24 , Koen van de

Re: Does XCode 3.2 Documentation Browser Stink?

2011-10-15 Thread Ryan Homer
Instead of the the links you would use to the left of the actual documentation, you now use the breadcrumb links towards the top of the documentation. It took me a while to get accustomed to it, but in the end you have more room for your documentation text. > Am I missing something or does the

Re: Blocks vs. life, the universe and everything

2011-10-15 Thread Greg Guerin
Quincey Morris wrote: The problem is that the documentation clearly states that exceptions must not try to escape across dispatch queue operation boundaries. AFAICT, this means that for every one of the tiny code block fragments I write, not only does my fragment need to be wrapped in a '

'Customize Toolbar...' menu item disabled

2011-10-15 Thread mark
I have a nib based toolbar in a window. I have set the customise toolbar flag to YES (in IB and programmatically). I have set the View menu items 'Customise Toolbar...' and 'Hide/Show Toolbar' to the first responder as directed in the documentation. I have implemented the delegate protocols -to

Re: 'Static' items in an NSOutlineView

2011-10-15 Thread Koen van der Drift
This is how I solved it. I my OutlineViewController, I created an array with the static items names: topLevelGroups = [[NSArray arrayWithObjects:@"LIBRARY", @"FAVORITES", nil] retain]; And then create the entities for these names: for (NSString *name in topLevelGroups) {

Re: Blocks vs. life, the universe and everything

2011-10-15 Thread Jens Alfke
On Oct 14, 2011, at 4:45 PM, Quincey Morris wrote: > As an aside, TBH, I've never seen any evidence that uncaught (by my code) > exceptions lead to the process being killed. Typically, the process just > continues after logging a message. Maybe that's because I'm typically running > from Xcode

ARC conversion issue problem with Xcode 4.2

2011-10-15 Thread Sean Todd
I am trying to convert a Core Data app which uses garbage collection to ARC. When I run the refactoring tool, I see issues like: Semantic Issue: Type of property 'person' does not match type of accessor 'setPerson:' The relevant declaration code: @class ABPerson; @interface XG2Student : NS

Use storyboard in iOS app

2011-10-15 Thread Sasikumar JP
Hi, I am planning to redesign my existing app. I want to use the storyboard for UI development and it should support the older OS starting from 3.2. I guess storyboard is Xcode 4.2 feature, it should not be any problem to support for older OS. Anyway I want to conform with you before I star

Re: Use storyboard in iOS app

2011-10-15 Thread Hunter Hillegas
Storyboard is an iOS 5 feature. It will not work on older OS versions. On Oct 15, 2011, at 7:14 PM, Sasikumar JP wrote: > Hi, >I am planning to redesign my existing app. I want to use the storyboard > for UI development and it should support the older OS starting from 3.2. > > I guess story

CFDictionarySetValue and ARC

2011-10-15 Thread Roland King
Despite reading the ARC documentation about 5 times, scanning the devforums and reading Mike Ash's post about ARC I'm totally failing to find the correct bridge cast for the following piece of code when converting to ARC. -(void)addView:(UIView *)view forElement:(id)element { CFDiction

Re: ARC conversion issue problem with Xcode 4.2

2011-10-15 Thread Quincey Morris
On Oct 15, 2011, at 18:02 , Sean Todd wrote: > I am trying to convert a Core Data app which uses garbage collection to ARC. > When I run the refactoring tool, I see issues like: > > Semantic Issue: Type of property 'person' does not match type of accessor > 'setPerson:' It's really, really imp

Re: CFDictionarySetValue and ARC

2011-10-15 Thread Quincey Morris
On Oct 15, 2011, at 20:20 , Roland King wrote: > -(void)addView:(UIView *)view forElement:(id)element > { > CFDictionarySetValue( viewToElementMap, (__bridge id)view, (__bridge > id)element ); > } > > gives me > > error: incompatible types casting 'UIView *__strong' to 'id' with a __brid

Arcs and Bridges

2011-10-15 Thread Gerriet M. Denkmann
I am converting a project to Arc. Formerly I had: CFStringEncoding encoding = ... CFStringRef axa = CFStringGetNameOfEncoding ( encoding ); NSString *encodingName = (NSString *)axa; NSDictionary *d = [ [ NSDictionary alloc ] initWithObjectsAndKeys: encodingName, kEncodingN

Re: Use storyboard in iOS app

2011-10-15 Thread Eric E Dolecki
Yup. Wish Xcode could convert down somehow when targeting lower because storyboards are super awesome. On Oct 15, 2011, at 10:21 PM, Hunter Hillegas wrote: > Storyboard is an iOS 5 feature. It will not work on older OS versions. > > On Oct 15, 2011, at 7:14 PM, Sasikumar JP wrote: > >> Hi, >

Re: Arcs and Bridges

2011-10-15 Thread Quincey Morris
On Oct 15, 2011, at 23:16 , Gerriet M. Denkmann wrote: > Formerly I had: > > CFStringEncoding encoding = ... > CFStringRef axa = CFStringGetNameOfEncoding ( encoding ); > NSString *encodingName = (NSString *)axa; > NSDictionary *d = [ [ NSDictionary alloc ] initWithObjectsAndKeys: >