Re: best time to alter GUIs

2008-02-29 Thread Quincey Morris
On Feb 28, 2008, at 21:04, Daniel Child wrote: In other words, the window loads right away. I actually don't want it to load until I have set the local data, as it is the local data that will determine how the window should appear. Is there a way to sneak the data in in before all the load

Compilation: error on linking libcurl PPC 7.18 on my Cocoa project

2008-02-29 Thread Michaël Parrot
Hello, To start portage of winwin project to Mac OS X I need to use the library libcurl 7.18 but the build faild on PPC link. I downloaded two binaries from http://www.hmug.org/pub/MacOS_X/BSD/Applications/Internet/curl/ since the page http://curl.haxx.se/download.html (Unfortunately, no Un

Scripting Bridge & Mail

2008-02-29 Thread Peter Schmidt
Hello List, I'm trying to generate an Email via Apple Scripting Bridge. Everything works fine, but can't add an attachment to it. I had tryed several ways, but it doesn't work. Can anybody help me to get it work? Here ist a code snippet: AppleMailApplication *mail = [SBApplication applica

Re: Better Anti-Aliasing for drawing?

2008-02-29 Thread Jean-Daniel Dupas
Le 29 févr. 08 à 10:50, Ben Lachman a écrit : I have some stuff that I draw rotated a small amount (~10 degrees) and the lines looks a little bit chunky for my tastes. You can see an example at: . Is there any way to coax better a

Better Anti-Aliasing for drawing?

2008-02-29 Thread Ben Lachman
I have some stuff that I draw rotated a small amount (~10 degrees) and the lines looks a little bit chunky for my tastes. You can see an example at: . Is there any way to coax better antialiasing out of drawing things at this small

Re: Charting API?

2008-02-29 Thread lbland
On Feb 27, 2008, at 2:14 PM, Chris Schmitt wrote: I want to add some simple bar graphs and pie charts to my project. Is there an apple api for charting or do you need to use a 3rd party product? hi- You can use Vvidget Code (http://www.vvi.com/products/vvidgetcode) which now has an IB 3

Re: Cocoa-dev Digest, Vol 5, Issue 321

2008-02-29 Thread Daniel Child
Visible at launch is not checked. But are you suggesting that you cannot configure the window prior to displaying it? Or do you distinguish "load" from "display"? I'm trying to load it into memory, alter it, and then display. Judging from debug sessions, the window and other top level objec

Re: Charting API?

2008-02-29 Thread Jiva DeVoe
I'll add my recommendation for SM2DGraphView as well. The docs are good and the code works well. -- Jiva DeVoe http://www.random-ideas.net On Feb 27, 2008, at 4:56 PM, "Kyle Sluder" <[EMAIL PROTECTED] > wrote: On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <[EMAIL PROTECTED]> wrote: I wan

Re: Scripting Bridge & Mail

2008-02-29 Thread Manfred Schwind
NSDictionary *path = [NSDictionary dictionaryWithObject: @"Merkur:Users:schmidt:Desktop:image.tiff" forKey: @"file name"]; The string used in this dictionary is not a valid file path. In this case it should be e.g.: @"/Users/schmidt/Desktop/image.tiff" or even better: [NSHomeDirectory(

Re: Scripting Bridge & Mail

2008-02-29 Thread Peter Schmidt
Am 29.02.2008 um 14:55 schrieb Manfred Schwind: @"/Users/schmidt/Desktop/image.tiff" or even better: [NSHomeDirectory() stringByAppendingPathComponent:@"Desktop/ image.tiff"]; The Path is not the problem (the hardcoding is only for testing). If I'm trying to set it path after addig the at

Determining NSTableView height when doing layout in IB

2008-02-29 Thread Sean McBride
Hi all, Is it just me, or does IB not really provide a way to nicely set the height of a tableview? I would like for my tableviews to have a height such that an integer number of rows fit, without any half rows visible. Something like: height of scroll view containing tableview = height of table

Re: Determining NSTableView height when doing layout in IB

2008-02-29 Thread Kyle Sluder
On Fri, Feb 29, 2008 at 11:09 AM, Sean McBride <[EMAIL PROTECTED]> wrote: > height of scroll view containing tableview = height of table header view > + (num rows * row height) + height of horizontal scroller. I think the biggest problem with this would be implementing this logic for any arbitra

Re: CATextLayer metrics

2008-02-29 Thread Scott Anguish
CATextLayer is largely a convenience class. It provides text features, but very little flexibility. You can easily subclass CALayer and create your own text layer that uses NSFont, complex text layout , and all the familiar methods. Plus you'll get more flexibility. _

No Undo in RubyCocoa CoreData apps?

2008-02-29 Thread Knud Hinnerk Möller
Hi, I've asked this question in other places, but didn't get a good answer yet. So: if you create a basic ObjC coredata app from the appropriate template in XCode, you'll get undo support, as promised. If you create the same application with RubyCocoa (using the XCode template again), you

Re: NSTableView

2008-02-29 Thread Jeremy
John, I guess I forgot to send an e-mail saying Andrew Merenbach helped me out on this one. He found a small error in my code. :) Jeremy "For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid

Re: TextEdit-speed file loading

2008-02-29 Thread Douglas Davidson
On Feb 28, 2008, at 8:26 PM, Steven Degutis wrote: I've manually set that to YES using IB3, and it did make a significant difference in loading time, pretty close to the near-instant time of TextEdit. However, when I try to scroll through the NSTextView using the scroll bar, it often becomes un

Re: Determining NSTableView height when doing layout in IB

2008-02-29 Thread Quincey Morris
On Feb 29, 2008, at 08:09, Sean McBride wrote: Is it just me, or does IB not really provide a way to nicely set the height of a tableview? I would like for my tableviews to have a height such that an integer number of rows fit, without any half rows visible. You can always turn on altern

Re: Cocoa-dev Digest, Vol 5, Issue 321

2008-02-29 Thread Quincey Morris
On Feb 29, 2008, at 06:09, Daniel Child wrote: But are you suggesting that you cannot configure the window prior to displaying it? Or do you distinguish "load" from "display"? I'm trying to load it into memory, alter it, and then display. I was distinguishing "load" from "display". You h

Re: Scripting Bridge & Mail

2008-02-29 Thread has
Peter Schmidt wrote: I'm trying to generate an Email via Apple Scripting Bridge. Everything works fine, but can't add an attachment to it. The AttachToMail sample project in appscript's svn repository shows how to do this using objc-appscript. http://appscript.sourceforge.net/objc

Fixed Column in TableView?

2008-02-29 Thread Jerry LeVan
Hi, I could not find much in the archives... There have been several occasions where it would have been very convenient to be able to pin the first column in a table view. I.e. looking at a wide table in a database where the first column is a key value... Has anyone figured out a way to keep t

Returning values from objc_msgSend etc

2008-02-29 Thread Duncan McGregor
Are there any Objective-C wizards out there who could review a few conceptual and practical issues I have returning values from objc_msgSend and its friends? I've just released Rococoa, a generic replacement for the Cocoa-Java bridge, under LGPL. Some things do not work as expected on PPC. I know

Re: Drawing from secondary thread erases resize corner in window?

2008-02-29 Thread Hank Heijink (Mailinglists)
Sent a message to the list from the wrong account, so it bounced. Here it is: On Feb 28, 2008, at 5:01 PM, Hamish Allan wrote: You could try kCFRunLoopCommonModes (pre-Leopard) / NSRunLoopCommonModes (post-Leopard). I believe that NSDefaultRunLoopMode and NSEventTrackingRunLoopMode are in the

Re: Better Anti-Aliasing for drawing?

2008-02-29 Thread Ben Lachman
On Feb 29, 2008, at 5:15 AM, Jean-Daniel Dupas wrote: Le 29 févr. 08 à 10:50, Ben Lachman a écrit : I have some stuff that I draw rotated a small amount (~10 degrees) and the lines looks a little bit chunky for my tastes. You can see an example at:

Re: Scripting Bridge & Mail

2008-02-29 Thread Pavel Kapinos
Peter,  Apple has just posted an example project of using SB with Mail http://developer.apple.com/samplecode/SBSendEmail/index.html It deals with attachments too. Pavel. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: setting exif metadata with ApplicationServices framework

2008-02-29 Thread C Sandeep
Hi all, I think I have solved this one. I wasn't setting the right type for the destination properties, hence it wouldn't work. Subsequently I have posted an small howto on here: http://sandeepc.livejournal.com/656.html Hope it helps others. - Sandeep On Fri, Feb 22, 2008 at 3:57 PM, C Sandeep

Re: Returning values from objc_msgSend etc

2008-02-29 Thread Greg Parker
On Feb 29, 2008, at 11:05 AM, Duncan McGregor wrote: Are there any Objective-C wizards out there who could review a few conceptual and practical issues I have returning values from objc_msgSend and its friends? I've just released Rococoa, a generic replacement for the Cocoa-Java bridge, under LG

Re: Custom View drawn twice?

2008-02-29 Thread Ben Lachman
Well, I finally was able to get this solved, but not to my satisfaction. What I'm having to do is this: if( ! NSContainsRect(rect, [self visibleRect]) && ! NSEqualRects (rect,[self visibleRect]) ) { [self setNeedsDisplayInRect:[self bounds]]; [self displayIfN

Re: Scripting Bridge & Mail

2008-02-29 Thread Peter Schmidt
Am 29.02.2008 um 20:56 schrieb Pavel Kapinos: Apple has just posted an example project of using SB with Mail http://developer.apple.com/samplecode/SBSendEmail/index.html It deals with attachments too. Thank you very much! This es _exactly_ what I'm looking for. And I've found my Error: W

Re: complex views in a tableview

2008-02-29 Thread Sean McBride
On 2/28/08 7:15 PM, j o a r said: >> I haven't used NSCollectionView but I have read about it. It seems to >> be geared towards grids more than lists. I'm looking to have a table >> with 2 resizable columns: the first a simple string, the second my >> 'complex view'. I'm not sure I could really

Re: CATextLayer metrics

2008-02-29 Thread Karl Goiser
Thanks Scott and Bill! On 01/03/2008, at 3:42 AM, Scott Anguish wrote: CATextLayer is largely a convenience class. It provides text features, but very little flexibility. You can easily subclass CALayer and create your own text layer that uses NSFont, complex text layout , and all the fam

Re: Apple Help question

2008-02-29 Thread Matt Neuburg
On Wed, 27 Feb 2008 12:12:57 -0500 (EST), "z" <[EMAIL PROTECTED]> said: > >I have problems trying to implement Apple Help. >All I get is an empty help window without a title. > >My index.html file is: > >My Info.plist includes: > CFBundleHelpBookName > Yellow Help Book Blp! Mismatch, did not

Re: CATextLayer metrics

2008-02-29 Thread Scott Anguish
On Feb 29, 2008, at 2:00 PM, Karl Goiser wrote: The irksome thing is that rolling your own text layer means duplicating pretty-well all of CATextLayer (maybe that's not much!) - all for the want of some details of how the text is rendered... If details were published, it would be pretty ea

How to make a bevel button with pop-up menu?

2008-02-29 Thread Sean McBride
Hi all, I'm trying to make a bevel button with pop-up menu (see HIG figure 15-28: ). The instructions do not seem to work. I just c

Re: Custom View drawn twice?

2008-02-29 Thread Ken Ferry
I don't see a problem in your drawRect: code, so it'd be in something you haven't posted. Perhaps you could post a sample application? One possibility is that your -isOpaque method returns YES, so the view system thinks it doesn't have to redraw your superview before asking you to draw. If you'r

Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Steve Weller
I have a custom view into which I can draw a background color and a centered rectangle. As the window is resized, the rectangle stays centered and is clipped when the window gets small. I want to define a canvas size slightly bigger than the rectangle and have the scrollers appear when th

View mouse Events

2008-02-29 Thread cai qin
Hi all , I have a question about how view handling events . I have a view in the middle of the window . |=myWindow===| || | |--|| | | || | |

Re: View mouse Events

2008-02-29 Thread Quincey Morris
On Feb 29, 2008, at 16:04, cai qin wrote: I hold mouse button down inside my window ,but outside myView. I drag the mouse to myView . Can myView receive some events message? If it can't , how can I send something to myView and tell it ,"Hey , the mouse are coming!"?? Set up a NSTrackingAre

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Quincey Morris
On Feb 29, 2008, at 16:00, Steve Weller wrote: - (void) setFrameSize:(NSSize)newSize { NSSize cSize; cSize = [self canvasSize]; // Provides a size // Use the larger dimensions of the two rects if(newSize.width > cSize.width) cSize.width = newSi

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Steve Weller
On Feb 29, 2008, at 4:46 PM, Quincey Morris wrote: On Feb 29, 2008, at 16:00, Steve Weller wrote: - (void) setFrameSize:(NSSize)newSize { NSSize cSize; cSize = [self canvasSize]; // Provides a size // Use the larger dimensions of the two rects if(newSize.wi

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Quincey Morris
On Feb 29, 2008, at 18:10, Steve Weller wrote: My custom view spans the window's content view. I want to draw a white rectangle (think of a document) centered in that area and fill the remainder gray. In my drawRect method I first draw gray into the rectangle passed. Then I calculate where

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Quincey Morris
On Feb 29, 2008, at 18:46, Steve Weller wrote: There is always too much frame once the scroll bars appear. That's something only you can debug. If you break on the frame change notification, you should be able to watch the wrong frame being calculated. __

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Steve Weller
On Feb 29, 2008, at 4:00 PM, Steve Weller wrote: I have a custom view into which I can draw a background color and a centered rectangle. As the window is resized, the rectangle stays centered and is clipped when the window gets small. I want to define a canvas size slightly bigger than t

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Quincey Morris
On Feb 29, 2008, at 21:31, Steve Weller wrote: -(void)frameDidChangeNotification:(NSNotification *)notification { [[NSNotificationCenter defaultCenter] removeObserver: self]; NSRect frame = [[self superview] frame]; NSSize cSize; cSize = [self canvasSize];

Re: Charting API?

2008-02-29 Thread Robert Douglas
When I looked into this last fall I decided I liked the look of DataGraph and bought a license, but then I ran into trouble incorporating it into a garbage-collected app and started writing my own. Mind you, that could have been me and my Fortran IV - imprinted brain, but now I too am re