Dragging tableView rows to an external applications

2008-09-23 Thread Steve Cronin
Folks; I'm trying in 10.4+ to implement dragging data from a tableView to the desktop. My problem is probably a dunderhead oversight but I can't see it. I have NOT subclassed an NSTableView. In a windowController I do the following in -awakeFromNib: (myTableView is an Outlet) ... [myTable

Setting "Open With" program/file association programmatically (command line or script)

2008-09-23 Thread Pierre Guilluy
Hello, How would one bind an application to a given file type programmatically? The normal method is to select a file of the type, choose "get Info", then "open with" and select an application to always open the file type with. What I would like to know is if it possible to do so either u

Re: Dragging tableView rows to an external applications

2008-09-23 Thread Graham Cox
On 23 Sep 2008, at 7:00 pm, Steve Cronin wrote: Folks; I'm trying in 10.4+ to implement dragging data from a tableView to the desktop. My problem is probably a dunderhead oversight but I can't see it. I have NOT subclassed an NSTableView. In a windowController I do the following in -awakeF

Re: Dragging tableView rows to an external applications

2008-09-23 Thread Graham Cox
On 23 Sep 2008, at 10:22 pm, Graham Cox wrote: Have you actually written the promised files type in - tableView:writeRowsWithIndexes:toPasteboard: ? If not, that might be why you're not seeing the expected cursor. This further passage from the same doc is also pertinent, I guess: "The NST

Application frameworks for Objective-C?

2008-09-23 Thread Christian Giordano
Hi guys, I'm developing my first decent size application with Objective-C and I'm starting missing a framework I use for my applications when I do ActionScript, precisely PureMVC: http://puremvc.org/content/view/67/178/ It is basically a way to be able to send notifications across the application

Re: Application frameworks for Objective-C?

2008-09-23 Thread Graham Cox
On 23 Sep 2008, at 10:33 pm, Christian Giordano wrote: It is basically a way to be able to send notifications across the application. Is there something similar for Objective-C? NSNotificationCenter and NSNotification? hth, Graham ___ Cocoa-

Calendar Store with non AddressBook participants?

2008-09-23 Thread Alexander Lamb (dev)
Hello List, I am investigating the possibility to use icalserver to store medical appointments. This means either: - a physician (a user of the calendar) - a patient - a given day and time or - a resource (XRay material, etc...) - a patient - a given day and time Now, I have two problems:

Re: Application frameworks for Objective-C?

2008-09-23 Thread Christian Giordano
Yep, that seems to be the way to go! Thanks a lot Graham. Best, chr On Tue, Sep 23, 2008 at 1:40 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > > On 23 Sep 2008, at 10:33 pm, Christian Giordano wrote: > >> It is basically a way to be able to send notifications across the >> application. >> >> I

Re: Setting "Open With" program/file association programmatically (command line or script)

2008-09-23 Thread Jeffrey R. Kelley
Andrew Mortensen of the University of Michigan has created an application, "duti," that does just this from the command line. http://duti.sourceforge.net/ Jeffrey R. Kelley [EMAIL PROTECTED] ITCS - Campus Computing Sites University of Michigan On Sep 23, 2008, at 8:20 AM, Pierre Guilluy wrote

Re: NSURLDownload resumeData always nil

2008-09-23 Thread Michael Ash
On Mon, Sep 22, 2008 at 10:41 PM, Andrew Zahra <[EMAIL PROTECTED]> wrote: > I am experimenting with the resume functionality in NSURLDownload, however I > always get nil back when I call resumeData. I have tried a couple of > different sites and then tried using wget to get the files. wget resumes

Re: Application frameworks for Objective-C?

2008-09-23 Thread Jens Miltner
Am 23.09.2008 um 14:45 schrieb Christian Giordano: Yep, that seems to be the way to go! FWIW - if you want asynchronous delivery of the notifications, use NSNotificationQueue instead of NSNotificationCenter... On Tue, Sep 23, 2008 at 1:40 PM, Graham Cox <[EMAIL PROTECTED]> wrote:

Re: Always allowing drags from WebView inside a global NSPanel

2008-09-23 Thread Benjamin Stiglitz
> The problem I am having is that to drag out of the WebView the panel has > to be main (i.e. the close/minimize/zoom buttons are filled in). > However, if you hold down the command key, the drag out of that window > works fine. > > Where do I start looking to make this work without having to

Re: NSURLDownload resumeData always nil

2008-09-23 Thread jmf . forum
If the response header does not include an ETag, NSURLDownload will always return a nil resumeData. On Sep 22, 2008, at 10:41 PM, Andrew Zahra wrote: I am experimenting with the resume functionality in NSURLDownload, however I always get nil back when I call resumeData. I have tried a coup

Re: NSURLDownload resumeData always nil

2008-09-23 Thread jmf . forum
Almost forgot additionally, you have to call the Cancel method before checking resumeData, otherwise it's nil. On Sep 23, 2008, at 12:17 PM, [EMAIL PROTECTED] wrote: If the response header does not include an ETag, NSURLDownload will always return a nil resumeData. On Sep 22, 2008, at

Validating MenuItems before adding them to the menu

2008-09-23 Thread Mudi Dandan
Hi, I'm building a context menu for a table view. The context menu will naturally include some of the items from the application menu, but when the related actions are not available, I don't want them to show in the context menu. My question is: is there a method to determine whether an ite

Bindings Help

2008-09-23 Thread Eric Lee
I'm just beginning to learn bindings, and I havea question. Using bindings, how do you add an object (a textfield's string to be specific) to a NSMutableArray so that a table view can show the object? thanks! ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Validating MenuItems before adding them to the menu

2008-09-23 Thread Erik Buck
See the - (id)targetForAction:(SEL)aSelector method.  When adding context menu items, if the target for the menu item's action would be nil, just don't add the menu item.   However, I recommend adding all menu items that are ever available and just disabling the ones that aren't currently availa

Naming alert panel buttons.

2008-09-23 Thread Erik Buck
We have all seen the ubiquitous "OK" "Cancel" buttons.  Many people have recommended more descriptive names that include verbs for button labels.    I just ran across a Cocoa application that shall remain nameless.  I attempted to cancel a long running operation by pressing a "Cancel" button, an

Re: Validating MenuItems before adding them to the menu

2008-09-23 Thread Mudi Dandan
Thanks Erik, that exactly is I was looking for. Regarding your recommendation as I learned context menus should not contain disabled items (check Finder for example) but I'm not really sure if this mentioned in the HIG. Mudi On Sep 23, 2008, at 7:28 PM, Erik Buck wrote: See the - (id)targ

Adding external library in cocoa app

2008-09-23 Thread Harsh Trivedi
Hi, I am new to cocoa and objective c. I am trying to create an application which uses an external C library (exosip2 and libyahoo2). I have downloaded the source code compiled it using terminal and added it to my project. however I am having issues with it my application gives me a linking er

Re: Adding external library in cocoa app

2008-09-23 Thread Matt Long
If you compiled your libs using the normal linux/unix ./configure, make, make install routine, you likely don't have universal binaries. Can't be sure your issue without seeing your linker error messages, but this is a likely cause. -Matt On Sep 23, 2008, at 11:50 AM, Harsh Trivedi wrote

Re: Bindings Help

2008-09-23 Thread Quincey Morris
On Sep 23, 2008, at 10:22, Eric Lee wrote: Using bindings, how do you add an object (a textfield's string to be specific) to a NSMutableArray so that a table view can show the object? You need to modify the array in a KVO-compliant manner, which means the array needs to be a property of

Re: Naming alert panel buttons.

2008-09-23 Thread I. Savant
On Tue, Sep 23, 2008 at 1:39 PM, Erik Buck <[EMAIL PROTECTED]> wrote: > I bring this up because I ran across another application today that took the > advice of using more informative verbs for button labels. I tried to cancel > an operation, and a panel appeared. The two choices were "Cancel"

Re: Adding external library in cocoa app

2008-09-23 Thread Harsh Trivedi
Thanks for the reply Matt, can you suggest a method or a reference document for adding external libraries to a leopard based cocoa app. The reason I specifically mention leopard is because leopard doesnot allow adding static libraries -Harsh On Tue, Sep 23, 20

Re: Adding external library in cocoa app

2008-09-23 Thread Nick Zitzmann
On Sep 23, 2008, at 12:56 PM, Harsh Trivedi wrote: can you suggest a method or a reference document for adding external libraries to a leopard based cocoa app. Just drag them into the project from the Finder, or use the "add existing frameworks" contextual menu item. The reason I spec

Creating alias programatically

2008-09-23 Thread chaitanya pandit
Hi, I've been struggling with for quite a while now, what i want to achieve is create an alias of a folder at some location. The alias would also be a folder like we have after creating an alias in the finder. say i have a folder "foo" in "/Users/me/Documents/foo" and i want to programati

Re: Creating alias programatically

2008-09-23 Thread Nick Zitzmann
On Sep 23, 2008, at 1:13 PM, chaitanya pandit wrote: I've been struggling with for quite a while now, what i want to achieve is create an alias of a folder at some location. The alias would also be a folder like we have after creating an alias in the finder. say i have a folder "foo" in "

Fwd: Memory cleanup when init fails?

2008-09-23 Thread Chris Suter
On Wed, Sep 24, 2008 at 5:05 AM, j o a r <[EMAIL PROTECTED]> wrote: > > On Sep 23, 2008, at 10:39 AM, Greg Parker wrote: > >> You should first clean up anything you already did in your -init, then >> call [super dealloc]. [self dealloc] or [self release] are bad because they >> might call some subc

Re: Bindings Help

2008-09-23 Thread Ken Thomases
On Sep 23, 2008, at 1:21 PM, Quincey Morris wrote: On Sep 23, 2008, at 10:22, Eric Lee wrote: Using bindings, how do you add an object (a textfield's string to be specific) to a NSMutableArray so that a table view can show the object? You need to modify the array in a KVO-compliant manne

Menu item issues when programmatically updating an application's main menu

2008-09-23 Thread Mattias Arrelid
Hi list, We have some code in an application of ours that replaces the main menu using NSMenu's setMainMenu:. This has been working just fine since day one but ever since the introduction of Leopard we have noticed some strange behavior with the "Help" menu. I have also noticed this behavior in Re

Re: Creating alias programatically

2008-09-23 Thread chaitanya pandit
On 24-Sep-08, at 1:47 AM, Nick Zitzmann wrote: On Sep 23, 2008, at 1:13 PM, chaitanya pandit wrote: I've been struggling with for quite a while now, what i want to achieve is create an alias of a folder at some location. The alias would also be a folder like we have after creating an alia

Re: Creating alias programatically

2008-09-23 Thread Nick Zitzmann
On Sep 23, 2008, at 2:32 PM, chaitanya pandit wrote: I tried using symbolic link, but if the target file is moved, the link fails, just curious to know of any reasons i should avoid creating aliases? What i need is the link should work even if the target is moved. Because aliases are on

Re: Creating alias programatically

2008-09-23 Thread Ken Thomases
On Sep 23, 2008, at 2:13 PM, chaitanya pandit wrote: I've been struggling with for quite a while now, what i want to achieve is create an alias of a folder at some location. You may be being tripped up by terminology. An "alias" is an opaque data structure in memory. An "alias file" is a

Re: Creating alias programatically

2008-09-23 Thread chaitanya pandit
I tried using: OSErr FSNewAliasFromPath ( const char *fromFilePath, const char *targetPath, OptionBits flags, AliasHandle *inAlias, Boolean *isDirectory ); But i don't quite get how should i use the fromFilePath parameter, say i want to create an alias for "Users/me/Documents/foo" at "Users/

Re: Creating alias programatically

2008-09-23 Thread Nick Zitzmann
On Sep 23, 2008, at 2:48 PM, chaitanya pandit wrote: I tried using: OSErr FSNewAliasFromPath ( const char *fromFilePath, const char *targetPath, OptionBits flags, AliasHandle *inAlias, Boolean *isDirectory ); But i don't quite get how should i use the fromFilePath parameter, say i want to

Re: Creating alias programatically

2008-09-23 Thread chaitanya pandit
Thanks for the input Ken, Suppose the target file to which the symbolic link is pointing to is moved, is there any way one can determine where it was moved or deleted? Assuming the file was moved even when the app was not running? On 24-Sep-08, at 2:10 AM, Ken Thomases wrote: On Sep 23, 20

Re: Creating alias programatically

2008-09-23 Thread Ken Thomases
On Sep 23, 2008, at 4:04 PM, chaitanya pandit wrote: Suppose the target file to which the symbolic link is pointing to is moved, is there any way one can determine where it was moved or deleted? Assuming the file was moved even when the app was not running? Generally, symbolic links don't

Re: Creating alias programatically

2008-09-23 Thread chaitanya pandit
On 24-Sep-08, at 2:22 AM, Nick Zitzmann wrote: On Sep 23, 2008, at 2:48 PM, chaitanya pandit wrote: I tried using: OSErr FSNewAliasFromPath ( const char *fromFilePath, const char *targetPath, OptionBits flags, AliasHandle *inAlias, Boolean *isDirectory ); But i don't quite get how shoul

Re: Creating alias programatically

2008-09-23 Thread Nick Zitzmann
On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote: It created an executable file with name foobar alias on desktop but when i try to open it it says "chaitanya-pandits-macbook:~ chaitanya$ /Users/chaitanya/Desktop/ foobar\ alias ; exit; -bash: /Users/chaitanya/Desktop/foobar alias: cannot e

Re: Creating alias programatically

2008-09-23 Thread chaitanya pandit
On 24-Sep-08, at 3:32 AM, Nick Zitzmann wrote: On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote: It created an executable file with name foobar alias on desktop but when i try to open it it says "chaitanya-pandits-macbook:~ chaitanya$ /Users/chaitanya/Desktop/ foobar\ alias ; exit; -bas

Re: Always allowing drags from WebView inside a global NSPanel

2008-09-23 Thread Nick Beadman
Ben, On Sep 23, 2008, at 8:19 am, Benjamin Stiglitz wrote: The problem I am having is that to drag out of the WebView the panel has to be main (i.e. the close/minimize/zoom buttons are filled in). However, if you hold down the command key, the drag out of that window works fine. Where d

[ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]

2008-09-23 Thread David Riggle
What is the use of the new Leopard call [ABAddressBook addressBook]? I played around with it, and it seems to be functionally equivalent to [ABAddressBook sharedAddressBook]. Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Creating alias programatically

2008-09-23 Thread Rainer Brockerhoff
At 15:12 -0700 23/09/08, [EMAIL PROTECTED] wrote: >From: Ken Thomases <[EMAIL PROTECTED]> >References: <[EMAIL PROTECTED]> >In-Reply-To: <[EMAIL PROTECTED]> >Date: Tue, 23 Sep 2008 15:40:47 -0500 >Message-ID: <[EMAIL PROTECTED]> > >Apple has never officially supported applications creating alias fi

NSMutableURLRequest setHTTPBody

2008-09-23 Thread John Zorko
Hello, all ... I've a question -- if I have an NSData object with non-ASCII data in it, will NSMutableURLRequest -setHTTPBody automatically URL-encode it? I'm trying to POST some image data to a web server. Regards, John Falling You - exploring the beauty of voice and sound http://www.f

Re: Creating alias programatically

2008-09-23 Thread Ken Thomases
On Sep 23, 2008, at 5:54 PM, Rainer Brockerhoff wrote: At 15:12 -0700 23/09/08, [EMAIL PROTECTED] wrote: From: Ken Thomases <[EMAIL PROTECTED]> Apple has never officially supported applications creating alias files. In fact, the documentation often refers to them as "Finder alias files" b

Re: Creating alias programatically

2008-09-23 Thread Sean McBride
Chaitanya, If you're working with aliases and Cocoa, take a look at the free NDAlias classes. There are even methods to create alias files. -- Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research

Re: Creating alias programatically

2008-09-23 Thread Charles Srstka
On Sep 23, 2008, at 5:02 PM, Nick Zitzmann wrote: On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote: It created an executable file with name foobar alias on desktop but when i try to open it it says "chaitanya-pandits-macbook:~ chaitanya$ /Users/chaitanya/Desktop/ foobar\ alias ; exit; -ba

Re: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]

2008-09-23 Thread Ricky Sharp
On Sep 23, 2008, at 5:44 PM, David Riggle wrote: What is the use of the new Leopard call [ABAddressBook addressBook]? I played around with it, and it seems to be functionally equivalent to [ABAddressBook sharedAddressBook]. From the docs, the former gives you a new instance of an address

Re: NSMutableURLRequest setHTTPBody

2008-09-23 Thread Kyle Sluder
On Tue, Sep 23, 2008 at 7:14 PM, John Zorko <[EMAIL PROTECTED]> wrote: > I've a question -- if I have an NSData object with non-ASCII data in it, > will NSMutableURLRequest -setHTTPBody automatically URL-encode it? I'm > trying to POST some image data to a web server. I don't see why you could as

Re: [ABAddressBook addressBook] vs. [ABAddressBook sharedAddressBook]

2008-09-23 Thread David Riggle
That's what I thought too, but it doesn't seem to work that way. I took the sample app AddressBookCocoa, changed the sharedAddressBook calls to addressBook, and the app performed exactly the same. Contacts added to the "private" address book showed up in the Address Book application, just a

Re: Menu item issues when programmatically updating an application's main menu

2008-09-23 Thread Kyle Sluder
On Tue, Sep 23, 2008 at 4:23 PM, Mattias Arrelid <[EMAIL PROTECTED]> wrote: > Does anyone have a clue what I could do debug this? I'm really puzzled > after having tried to figure out the cause this afternoon... Sounds like it's related to Leopard's new Spotlight for Help feature -- which, disappo

Saving an annotated PDF to a flat image

2008-09-23 Thread Danny Greg
Hi list, I am trying to save a PDF annotated using subclasses of PDFAnnotation to an image (such as a png, jpg etc) or a PDF such that the annotations are displayed. So the resulting image should be annotated. I have tried a couple of routes such as trying to draw the annotations on an in

Re: Properties and bindings

2008-09-23 Thread D.K. Johnston
Thanks for the explanations: it does make some kind of sense now. The reason I was looking at both forms is that I want the myInt property to be read-only, but I want the MyObject instance to be able to set it. If I do this: @property(readonly) NSInteger myInt; I can't do this in M

Controlling rootElement Display in outline view

2008-09-23 Thread Thomas Lennon
I was working through the ³Using Tree Controllers With NSXML Objects². http://developer.apple.com/documentation/Cocoa/Conceptual/NSXML_Concepts/Art icles/UsingTreeControllers.html#//apple_ref/doc/uid/TP40003565 I have an XML file and have coded following the example referenced above and all work

issues with mainMenu and initialization timing

2008-09-23 Thread David Alter
I'm working on a x-platform application that is written in Carbon and we are moving it to cocoa. I have it using a native Cocoa run loop as the main event loop. It is a nibless application. I jump through a few hoops for that to work correctly. Now I'm experiencing some very strange behavio

Converting from Carbon Event Manager to NSTimer

2008-09-23 Thread Dan Birns
I'm trying to convert from Carbon to Cocoa for a number of reasons which I won't go into here. My application needs to set a timer that causes a function to be called at a time in the future. This is non-repeating, and sometimes has be immediate. I need it to be as efficient as possible,

IB's autosave column information vs. -setAutosaveTableColumns:

2008-09-23 Thread Ashley Clark
It's my understanding that specifying an Autosave name and checking "Column Information" to be autosaved in IB on an NSTableView should be the same as sending the setAutosaveTableColumns:YES method to that table. And for the most part they seem to be similar, except when it comes to saving

Re: Properties and bindings

2008-09-23 Thread Jason Coco
On Sep 22, 2008, at 23:44 , D.K. Johnston wrote: Thanks for the explanations: it does make some kind of sense now. The reason I was looking at both forms is that I want the myInt property to be read-only, but I want the MyObject instance to be able to set it. If I do this: @prope

Re: Properties and bindings

2008-09-23 Thread Roland King
you mean you want it to be read-only for other users, but you want the object to be able to set it itself without jumping through hoops? There's something about this in the properties description in the objective-c documents. What I've been doing for this (ie having semi-private properties

Re: Properties and bindings

2008-09-23 Thread Andrew Merenbach
On Sep 22, 2008, at 8:44 PM, D.K. Johnston wrote: Thanks for the explanations: it does make some kind of sense now. The reason I was looking at both forms is that I want the myInt property to be read-only, but I want the MyObject instance to be able to set it. If I do this: @prop

Re: Properties and bindings

2008-09-23 Thread Shawn Erickson
On Mon, Sep 22, 2008 at 8:44 PM, D.K. Johnston <[EMAIL PROTECTED]> wrote: > Thanks for the explanations: it does make some kind of sense now. > > The reason I was looking at both forms is that I want the myInt property to > be read-only, but I want the MyObject instance to be able to set it. If I d

Re: Unable to launch about panel for the 2nd time

2008-09-23 Thread Jason Coco
On Sep 23, 2008, at 02:58 , Arun wrote: Hi All, I am a newbie to cocoa programming. I have written a small program in which i will be loading a Custom About panel from another nib. This launching of the panel works well only for the first time. If i close the panel and try to launch for the

Re: Converting from Carbon Event Manager to NSTimer

2008-09-23 Thread Jason Coco
On Sep 23, 2008, at 19:20 , Dan Birns wrote: I'm trying to convert from Carbon to Cocoa for a number of reasons which I won't go into here. My application needs to set a timer that causes a function to be called at a time in the future. This is non-repeating, and sometimes has be immedi

Re: Unable to launch about panel for the 2nd time

2008-09-23 Thread Jason Coco
On Sep 23, 2008, at 02:58 , Arun wrote: Hi All, I am a newbie to cocoa programming. I have written a small program in which i will be loading a Custom About panel from another nib. This launching of the panel works well only for the first time. If i close the panel and try to launch for the

CALayers inside NSSplitView (clipping issue)

2008-09-23 Thread John Clayton
Hi All, I have a vertically laid out NSSplitView which is hosting two NSViews, both of which contain CALayer instances. In the bottom view, there's a scroll view - and I can drag stuff within the view - which in turn causes the view to grow. Sometimes, the splitview doesn't clip the CALa

CGLayer questions

2008-09-23 Thread Alex Reynolds
Is it possible to take a CGLayer and turn it into a bitmap representation? Also, is it possible to grab a CGRect "subset" of a CGLayer and append that to a new CGLayer, so that it isn't necessary to recalculate the entirety of a new CGLayer? Thanks, Alex __

Re: Converting from Carbon Event Manager to NSTimer

2008-09-23 Thread Ken Thomases
On Sep 23, 2008, at 6:20 PM, Dan Birns wrote: My application needs to set a timer that causes a function to be called at a time in the future. This is non-repeating, and sometimes has be immediate. NSTimer is a good choice. Another thing to consider, if it meets your needs, is -performS

Re: How make a cocoa lib wich create a window ?

2008-09-23 Thread Ken Thomases
On Sep 23, 2008, at 11:41 PM, rouanet brice wrote: thanks, when I launch a simple app with this code it works : #import #import "MyOgView.h" int main(int argc, char *argv[]) { //use TransformProcessType to transform non gui processs in gui process //voir -[NSApplication runModal

Rendering big PDF into thumbnail bitmap - too blurry

2008-09-23 Thread Oleg Krupnov
I want to render a big PDF image into a small thumbnail image in a custom view. In drawRect: NSImageRep* pdfImageRep = [[pdfImage representations] lastObject]; [pdfImageRep drawInRect:thumbBounds]; This renders perfectly, however the operation is pretty costy as for using in drawRect, so I want

Re: Rendering big PDF into thumbnail bitmap - too blurry

2008-09-23 Thread Ken Thomases
On Sep 24, 2008, at 12:33 AM, Oleg Krupnov wrote: What could be the problem? Have you tried using -[NSGraphicsContext setImageInterpolation:] after locking focus? Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Creating alias programatically

2008-09-23 Thread Charles Srstka
On Sep 24, 2008, at 12:14 AM, chaitanya pandit wrote: On 24-Sep-08, at 5:10 AM, Charles Srstka wrote: On Sep 23, 2008, at 5:02 PM, Nick Zitzmann wrote: On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote: It created an executable file with name foobar alias on desktop but when i try to o

Re: Creating alias programatically

2008-09-23 Thread Charles Srstka
On Sep 23, 2008, at 5:54 PM, Rainer Brockerhoff wrote: (They were invented before Apple Events, after all ;-) ) This is actually not correct - alias files and Apple Events were both introduced simultaneously in System 7.0. Charles ___ Cocoa-dev

Re: Rendering big PDF into thumbnail bitmap - too blurry

2008-09-23 Thread Oleg Krupnov
Yes, I tried it and it doesn't seem to have any effect. I have just double-checked regarding - [NSBitmapImageRep initWithFocusedViewRect]. For an experiment I saved the bitmap to a tiff file right after capturing the bitmap from screen, and it appears that the tiff is sharp, not blurry. It looks

Re: Rendering big PDF into thumbnail bitmap - too blurry

2008-09-23 Thread Oleg Krupnov
Eurica! Two things were wrong: 1) There was a 0.5 pixel shift transform in my graphics context imposed earlier in the stack. I use this to render bezier curves to integer pixels, but for rendering bitmaps this offset needs to be reset. After fixing this, however, there was still a little blur, bu