compile DrawKit in 10.8

2012-08-05 Thread James Maxwell
Hello All, Has anyone had problems compiling drawkit on 10.8? I can't seem to build it. I tried downloading a fresh copy from apptree.net, but I still get errors. I'm using "Latest" base sdk and the "default" LLVM compiler. I'm trying to build the 32-bit version, for now, and getting these 4 er

How long will the dev site be down?

2012-08-05 Thread Rick Mann
"We'll be back soon.", but it has been 5 hours or more. -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.co

NSWindow with a NSTableView redraws incorrectly with autolayout on 10.8

2012-08-05 Thread Marcus Karlsson
Hello. I'm experiencing some window redrawing issues on 10.8 when I'm using NSTableViews and autolayout. I have created an application from the standard Cocoa application template in Xcode and set it to use automatic reference counting. All I've added is a toolbar and a table view to the window i

Re: crash in showOpenPanel on ML

2012-08-05 Thread Mike Abdullah
On 4 Aug 2012, at 08:08 PM, James Merkel wrote: > On Sat, 04 Aug 2012 15:08:54 +0100 Mike Abdullah wrote: > >> A) Your customers aren't going to be very happy about that >> B) You can still codesign with a self-signed certificate, and really should >> have been doing so since the 10.5 days >

Re: compile DrawKit in 10.8

2012-08-05 Thread Graham Cox
Hi James, I'm not really sure questions about my framework are appropriate for Cocoa-Dev, but anyhoo... what you have there are linker errors. I build DK daily and I had no problem at all with the 10.8 SDK or Xcode 4.4, so I'm not sure what the problem might be. The errors are all symbols withi

How to create an image, which can be accessed directly from memory as well as using Quarz functions?

2012-08-05 Thread Vojtěch Meluzín
Hi, I'm performing my own graphics rendering using background images, which are then placed onto the resulting Carbon/Cocoa view. I can perform the whole rendering manually (by accessing the image data), but for some reason this seems quite slow compared to the same thing on Windows (probably the

Re: How long will the dev site be down?

2012-08-05 Thread Fritz Anderson
I'm not sure that anyone on this list would have had a guess, but developer.apple.com (you meant that?) responds for me now. — F On 5 Aug 2012, at 3:26 AM, Rick Mann wrote: > "We'll be back soon.", but it has been 5 hours or more. ___ Coco

Re: NSWindow with a NSTableView redraws incorrectly with autolayout on 10.8

2012-08-05 Thread Fritz Anderson
On 5 Aug 2012, at 4:09 AM, Marcus Karlsson wrote: > If I run the application the window displays with the toolbar at the top > and the table view in the middle. I then click on the green title bar > button twice in order to first maximize the window and then restore it > to its original size. How

How to (slowly) rotate a view

2012-08-05 Thread Gerriet M. Denkmann
I use this code (iOS 5.1): CGAffineTransform m = { c, +s, -s, c, 0, 0 }; // rotation, s = sin(angle), c = cos(angle) CALayer *layer = self.view.layer; // view is UIView, self is subclass of UIViewController [ CATransaction begin]; [ CATransaction

Re: How to (slowly) rotate a view

2012-08-05 Thread Kyle Sluder
On Aug 5, 2012, at 10:11 AM, "Gerriet M. Denkmann" wrote: > I use this code (iOS 5.1): >CGAffineTransform m = { c, +s, -s, c, 0, 0 };//rotation, s = > sin(angle), c = cos(angle) >CALayer *layer = self.view.layer;//view is UIView, self is > subclass of UIViewController >

Re: How to (slowly) rotate a view

2012-08-05 Thread Gerriet M. Denkmann
On 6 Aug 2012, at 00:20, Kyle Sluder wrote: > On Aug 5, 2012, at 10:11 AM, "Gerriet M. Denkmann" > wrote: > >> I use this code (iOS 5.1): >> CGAffineTransform m = { c, +s, -s, c, 0, 0 };//rotation, s = >> sin(angle), c = cos(angle) >> CALayer *layer = self.view.layer;//vie

RE: I2C question - what is correct mailing list

2012-08-05 Thread C.W. Betts
My guess is either the darwin-kernel or darwin-drivers mailing list. Both can be found here: https://lists.apple.com/mailman/listinfo > Date: Fri, 27 Jul 2012 14:08:14 +0300 > From: vit...@qubyx.com > To: cocoa-dev@lists.apple.com > Subject: I2C question - what is correct mailing list > > Hel

Re: crash in showOpenPanel on ML

2012-08-05 Thread Andy Lee
I'm seeing this too. It's breaking on an exception. If I hit Continue, the app proceeds without any apparent ill effect -- and no logging of the exception. --Andy On Aug 4, 2012, at 12:00 PM, Koen van der Drift wrote: > > On Aug 4, 2012, at 9:08 AM, Koen van der Drift > wrote: > >> I'll k

Re: crash in showOpenPanel on ML

2012-08-05 Thread Kyle Sluder
On Aug 2, 2012, at 6:35 PM, Koen van der Drift wrote: > When the code executes, I briefly see the open panel window, but then it > crashes immediately, even before I can select a file. The error I get is for > me not clear: > > Thread 1, Queue : com.apple.main-thread > Thread 2, Queue : (null

Re: How to (slowly) rotate a view

2012-08-05 Thread Kyle Sluder
On Aug 5, 2012, at 10:34 AM, "Gerriet M. Denkmann" wrote: > I tried instead: >//opacity is 0.5 >[ CATransaction begin]; >[ CATransaction setAnimationDuration: 9 ]; >layer.opacity = 1; >[ CATransaction commit]; > >[ CATransaction begin]; >[ CATransaction setAnim

Re: How to (slowly) rotate a view

2012-08-05 Thread Gerriet M. Denkmann
On 6 Aug 2012, at 01:01, Kyle Sluder wrote: > On Aug 5, 2012, at 10:34 AM, "Gerriet M. Denkmann" > wrote: > >> I tried instead: >> //opacity is 0.5 >> [ CATransaction begin]; >> [ CATransaction setAnimationDuration: 9 ]; >> layer.opacity = 1; >> [ CATransaction commit]; >> >>

Re: How to (slowly) rotate a view

2012-08-05 Thread Richard Altenburg (Brainchild)
Something along these lines maybe?: [UIView animateWithDuration:durationSeconds animations:^ { [view setTransform:CGAffineTransformRotate([view transform], angleRadians)]; } ]; [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBest

Re: How to (slowly) rotate a view

2012-08-05 Thread Gerriet M. Denkmann
On 6 Aug 2012, at 01:48, Richard Altenburg (Brainchild) wrote: >[UIView animateWithDuration:durationSeconds > animations:^ > { > [view setTransform:CGAffineTransformRotate([view transform], > angleRadians)]; > } > ]; > Thanks! (or: Dank U we

Re: How to (slowly) rotate a view

2012-08-05 Thread Richard Altenburg (Brainchild)
You are most welcome. It took me a while to find the cleanest solution for rotating views in my project and I wanted to give it to you to save you some headaches... Mit freundlichem Gruß. [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 5 aug. 2012, om 21:08 heeft

RE: How to (slowly) rotate a view

2012-08-05 Thread Julius Oklamcak
FWIW: UIView sets the delegate of its CALayer to itself - one of the things that it appears to do is to disable any implicit animations. If you add your own CALayer to a UIView's CALayer, then you're in full control. As already pointed out, it's easier using one of the UIView animation class method

How to display tool-tip on demand

2012-08-05 Thread Michael Crawford
Is there a way to display a tool-tip in response to an event? Currently I'm waiting for the default timeout but if the user clicks on a particular cell (yes this is an NSTableView), I'd like to display the tool-tip immediately. The contents of the NSTableColumn in question are not editable so

Re: How to display tool-tip on demand

2012-08-05 Thread Jens Alfke
On Aug 5, 2012, at 4:56 PM, Michael Crawford wrote: > Is there a way to display a tool-tip in response to an event? Currently I'm > waiting for the default timeout but if the user clicks on a particular cell > (yes this is an NSTableView), I'd like to display the tool-tip immediately. > The

Trying to understand [NSFontManager modifyFont:]

2012-08-05 Thread Graham Cox
The documentation for [NSFontManager modifyFont:] doesn't make sense to me. It says: When a responder replies by providing a font to convert in a convertFont: message, the receiver converts the font in the manner specified by sender. The conversion is determined by sending a tag message to se

Re: How to display tool-tip on demand

2012-08-05 Thread Gary L. Wade
No, I couldn't find a way either, so I just made my own window that mirrored the look and feel of a tooltip window. I also needed it to follow a slider's thumb, which would have been problematic even in the default implementation. Of course, now we have NSPopover windows that could fit your need

Re: Trying to understand [NSFontManager modifyFont:]

2012-08-05 Thread Shane Stanley
On 06/08/2012, at 10:46 AM, Graham Cox wrote: > I'm puzzled as to how the standard "Bold" text menu item works, because it > too simply calls addFontTrait: (according to the action set in IB) and has a > tag indicating bold. How then does it REMOVE the bold trait? Is the Font > Manager manipul

Master-detail views and managing next responder sequence

2012-08-05 Thread Erik Stainsby
My current project is built around a master-detail style interface: the primary record owns the window content, while subviews display related content from various sources. My problem is that the tableViews which display these subordinate lists seem to mess up the responder chain's sequence for

Re: Trying to understand [NSFontManager modifyFont:]

2012-08-05 Thread Graham Cox
On 06/08/2012, at 11:20 AM, Shane Stanley wrote: > On 06/08/2012, at 10:46 AM, Graham Cox wrote: > >> I'm puzzled as to how the standard "Bold" text menu item works, because it >> too simply calls addFontTrait: (according to the action set in IB) and has a >> tag indicating bold. How then do

Re: Master-detail views and managing next responder sequence

2012-08-05 Thread Graham Cox
On 06/08/2012, at 11:38 AM, Erik Stainsby wrote: > My first higher-level question then is how I ought to be going about > establishing the tab-key behaviour sequence I want to achieve? Have you investigated whether -[NSWindow recalculateKeyViewLoop] would do the job? I've used this after in

Re: Trying to understand [NSFontManager modifyFont:]

2012-08-05 Thread Shane Stanley
On 06/08/2012, at 11:44 AM, Graham Cox wrote: > If anyone can think of a more elegant solution I'm interested. Does subclassing font manager and overriding setSelectedAttributes:isMultiple: get you anywhere? -- Shane Stanley 'AppleScriptObjC Explored' _

Re: Master-detail views and managing next responder sequence

2012-08-05 Thread Erik Stainsby
Thanks Graham, that has 90% of my issue addressed. The system seems to swallow a couple of keystrokes entering each table, but at least it does get there. I suspect a few judiciously placed refusesFirstRespnder's and I'm home free. Cheers, Erik On 2012-08-05, at 6:47 PM, Graham Cox wrote: >

Re: How to display tool-tip on demand

2012-08-05 Thread Michael Crawford
NSPopover it is. -Michael On Aug 5, 2012, at 8:58 PM, Gary L. Wade wrote: > No, I couldn't find a way either, so I just made my own window that mirrored > the look and feel of a tooltip window. I also needed it to follow a slider's > thumb, which would have been problematic even in the default

Re: How to display tool-tip on demand

2012-08-05 Thread Dave DeLong
I saw some hits on Google mentioning NSHelpManager. I've never used it, but you could try poking around in there for stuff. Dave On Aug 5, 2012, at 7:23 PM, Michael Crawford wrote: > NSPopover it is. > > -Michael > > On Aug 5, 2012, at 8:58 PM, Gary L. Wade wrote: > >> No, I couldn't find

makeFirstResponder: and tab views

2012-08-05 Thread Graham Cox
Run into a bug where if I have a number of NSTextFields in a window, and programatically switch the first responder of the window among these fields, it works fine, but if there is a NSTabView interposed between the fields and the window, they just cannot be set to be first responder programatic

Re: +underPageBackgroundColor

2012-08-05 Thread Graham Cox
I've tried just drawing this colour to a plain view, and I get no texture, just a pale "chino" sort of colour. Looking at what I get from this method in the debugger: (NSColor *) $1 = 0x00010983f850 NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.980392 0.941176 0.901961 1 This seems to