Icon in NSComboBoxCell menu item

2008-08-26 Thread Ivan C Myrvold
Is it possible to have icon in the menu item of an NSComboBox cell? Ivan ___ 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

Re: CIRotatingCubeTransition

2008-08-26 Thread Michael Vannorsdel
Just start at inputTime 1.0 and increment down to 0.0. This will rotate opposite from 0.0 to 1.0. On Aug 25, 2008, at 11:42 PM, Seth Willits wrote: CIRotatingCubeTransition is semi-public which confuses me. IB3 exposes it, but it otherwise seems to be private. I'd like to change the

Re: call setContentBorderThickness:forEdge: in Tiger

2008-08-26 Thread Georg Seifert
Hello Johan, this was the mystery: Why it crashes with NSMinXEdge when I only use NSMinYEdge. But the comment from Shawn helped me find the right answer. I have to set the Base SDK to 10.5 and the deployment SDK to 10.4. This, at least, solved the crash on Leopard. I cannot test it on

NSAppleScript shies away from porcupines

2008-08-26 Thread Gerriet M. Denkmann
I want to open some file: source = tell application SomeApp open POSIX file /Volumes/เม่น/some/file as alias activate end tell NSAppleScript *aa = [ [ NSAppleScript alloc ] initWithSource: source ] ; NSDictionary *errorInfo = nil ; NSAppleEventDescriptor *awe = [ aa

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Andrew Farmer
On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = tell application SomeApp... You're making things harder than they need to be. [[NSWorkspace sharedWorkspace] openFile:@/path/to/file withApplication:@SomeApp]; As to AppleScript's Unicode support, I

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Gerriet M. Denkmann
On 26 Aug 2008, at 15:04, Andrew Farmer wrote: On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = tell application SomeApp... You're making things harder than they need to be. [[NSWorkspace sharedWorkspace] openFile:@/path/to/file

Re: CIRotatingCubeTransition

2008-08-26 Thread Seth Willits
That doesn't help with rotating up or down. -- Seth Willits On Aug 25, 2008, at 11:40 PM, Michael Vannorsdel wrote: Just start at inputTime 1.0 and increment down to 0.0. This will rotate opposite from 0.0 to 1.0. On Aug 25, 2008, at 11:42 PM, Seth Willits wrote:

is LSEnvironment working with Leopard?

2008-08-26 Thread Half Activist
Hello everyone, The subject sums it up: Is the LSEnvironment plist key still supported in Leopard? I've been trying to set an environment variable this way with no luck. I've read about the /var/db/.AllowDYLDEnvironmentVariables trick, and thought it might enable LSEnvironment,

Re: CIRotatingCubeTransition

2008-08-26 Thread Michael Vannorsdel
Ah I see what you're doing. Off the top of my head you might be able to do this by rotating the two images 90 degrees and adding an affine transform filter to rotate back 90 (so images are upright again). In essence rotating the animation 90 degrees so it rotates on the horizontal axis.

Re: is LSEnvironment working with Leopard?

2008-08-26 Thread Jean-Daniel Dupas
It' works on Leopard, but only as the documentation states: “These environment variables are set only for applications launched through Launch Services. If you run your executable directly from the command line, these environment variables are not set.” And unfortunately, Xcode does not

Re: Core Data Entity object

2008-08-26 Thread Kyle Sluder
On Tue, Aug 26, 2008 at 8:43 AM, R T [EMAIL PROTECTED] wrote: Actually, there is a choice in the IB Library, under 'Objects Controllers in Core Data called Core Data Entity which is used to assist development of model-driven interface using Cocoa Bindings. The entity is a NSManagedObject

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Jason Coco
On Aug 26, 2008, at 04:19 , Gerriet M. Denkmann wrote: On 26 Aug 2008, at 15:04, Andrew Farmer wrote: On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = tell application SomeApp... You're making things harder than they need to be. [[NSWorkspace

Re: error: invalid lvalue in assignment

2008-08-26 Thread Don Arnel
Thanks, Ken! Your explanation makes perfect sense now that I look at it that way. Much appreciated. - Don On Aug 25, 2008, at 10:47 PM, Ken Thomases wrote: On Aug 25, 2008, at 6:25 PM, Don Arnel wrote: I tried to modify the position property in another file after creating an object but I

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Gerriet M. Denkmann
On 26 Aug 2008, at 20:58, Jason Coco wrote: On Aug 26, 2008, at 04:19 , Gerriet M. Denkmann wrote: On 26 Aug 2008, at 15:04, Andrew Farmer wrote: On 26 Aug 08, at 00:39, Gerriet M. Denkmann wrote: I want to open some file: source = tell application SomeApp... You're making things

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Charles Srstka
On Aug 26, 2008, at 11:34 AM, Gerriet M. Denkmann wrote: Could you tell me the exact appscript code? When I try in Script Editor: tell application Finder set macpath to POSIX file /Volumes/เม่น/Users as Unicode text open information window of macpath activate end tell and

[ANNOUNCE] SQLite Persisted Objects for Cocoa

2008-08-26 Thread Jeff LaMarche
Greetings all. I recently created a project at Google Code that I wanted to bring to your attention. http://code.google.com/p/sqlitepersistentobjects/ The goal of this project is to create Objective-C data model objects that automagically know how to persist themselves to a SQLite

Re: [ANNOUNCE] SQLite Persisted Objects for Cocoa

2008-08-26 Thread Devon Ferns
Col. One question. What happens if you change your object's properties? Is the database automatically updated with the new fields? What about pointers to other custom classes? Would that work if those classes inherit from SQLitePersistentObject? I'll definitely have to check this out

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread has
Gerriet M. Denkmann wrote: When I try in Script Editor: set macpath to POSIX file /Volumes/เม่น/Users as Unicode text and do Compile, then this gets transformed into: set macpath to file ‘ßÀÏ:Volumes:‡¡Ëπ:Users as Unicode text Sounds like you're on 10.4 or earlier. AppleScript only

Re: Semi-transparent, blurred NSWindow background?

2008-08-26 Thread Jonathan Dann
On 26 Aug 2008, at 00:52, Graham Cox wrote: On 26 Aug 2008, at 8:00 am, Jonathan Dann wrote: Using the private APIs / the method that Rob showed is perfectly fast. I'd really like this made easier too, so I filed an enhancement request rdar://6174287 Is it possible to file a

Creating a PDF file from NSString without showing it onscreen

2008-08-26 Thread Paul Archibald
Comrades - A while back I posted a question about creating a PDF file. I got a good, simple answer from Chuck which has worked in one test I have tried, but which I want to generalize. The first test used a custom view in the nib file, which I inserted text into, and then wrote out to

Re: Creating a PDF file from NSString without showing it onscreen

2008-08-26 Thread Andy Lee
On Aug 26, 2008, at 4:03 PM, Paul Archibald wrote: PDFImageView* pdfview = [[PDFImageView alloc] init]; [...], I see that my pdfbounds rectangle is not properly sized, but is just {0,0,0,0}. That's because you used -init to initialize pdfView. The designated initializer for

Re: [ANNOUNCE] SQLite Persisted Objects for Cocoa

2008-08-26 Thread Phillip Jacobs
Hi Jeff, This is really interesting stuff. Question: You mention references to other persisted objects as quasi-foreign-key relationships. How do you join these objects? Also, once a link is achieved how would you query taking advantage of this? I only ask because I don't see any

Re: NSAppleScript shies away from porcupines

2008-08-26 Thread Gerriet M. Denkmann
On 27 Aug 2008, at 02:09, has wrote: Gerriet M. Denkmann wrote: When I try in Script Editor: set macpath to POSIX file /Volumes/เม่น/Users as Unicode text and do Compile, then this gets transformed into: set macpath to file ‘ßÀÏ:Volumes:‡¡Ëπ:Users as Unicode text Sounds like

Removing Applications from the Dock Programmatically

2008-08-26 Thread Kevin Kicklighter
I need to remove applications that were on the the Dock, programmatically (running Leopard 10.5.4). Does anyone have a clue as to how I could accomplish this? Thanks, Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Creating a PDF file from NSString without showing it onscreen (solution?)

2008-08-26 Thread Paul Archibald
I think this will probably do: - (void) renderToPDFFile: (NSString*) text :(NSString*) file { NSRect r = NSMakeRect(0, 0, 800, 800); NSTextView* v = [[NSTextView alloc] initWithFrame:r]; [v setHidden:YES]; [v insertText:text]; [v sizeToFit];

Re: Removing Applications from the Dock Programmatically

2008-08-26 Thread Conrad Taylor
Hi, what's your goal and context for wanting to do this? -Conrad On Tue, Aug 26, 2008 at 2:34 PM, Kevin Kicklighter [EMAIL PROTECTED] wrote: I need to remove applications that were on the the Dock, programmatically (running Leopard 10.5.4). Does anyone have a clue as to how I could

xcode: how to not Go with Instruments

2008-08-26 Thread steph thirion
once I launch Instruments from Xcode (with 'Start with Performance Tool'), subsequently everytime I call 'build and go', Instrument launches. I need to close and relaunch xcode to stop that behavior. How do I 'detach' Instruments from xcode once I use it?

NSComboBox clicks make containing window disappear

2008-08-26 Thread Brian Marick
I have an NSComboBox that's using an external data source. It's on a window with a button. If I follow certain sequences of clicks, the window containing the combo box vanishes. It still exists, and I can make it appear from the Window menu by clicking on its name. The sequences look like

Re: Removing Applications from the Dock Programmatically

2008-08-26 Thread Graff
On Aug 26, 2008, at 5:34 PM, Kevin Kicklighter wrote: I need to remove applications that were on the the Dock, programmatically (running Leopard 10.5.4). Does anyone have a clue as to how I could accomplish this? You can access that information through NSUserDefaults as follows:

Re: Removing Applications from the Dock Programmatically

2008-08-26 Thread Graff
I forgot to mention that you'll have to force the Dock to re-load its preferences after fooling around like this. I really only know how to do this through the terminal or through AppleScript, although I'm sure there are other ways to do it Here's an example of an AppleScript: NSString

Re: xcode: how to not Go with Instruments

2008-08-26 Thread Darren Adkinson
hi Steph - if you go to the Run drop down menu you'll see: Go(Instruments) Run if you choose Run it's a 'clean' run. The next time you choose Go it will have reverted to Go(Run), ie. the last setting. I'm sure there's a persistent way to do this but I didn't find it after a quick look in

Re: xcode: how to not Go with Instruments

2008-08-26 Thread Jack Carbaugh
rather than quit xcode, just go into the run menu and select a different option. xcode will remember that choice the next time you use the command equiv. jack On Aug 26, 2008, at Tue-08 /26 /08-5:16 PM, steph thirion wrote: once I launch Instruments from Xcode (with 'Start with Performance

Re: core data hanging

2008-08-26 Thread Ron Lue-Sang
Are there any other threads doing anything? This smells like a deadlock to me. Can you open the same file using the plain CoreData (non document based) app? On Aug 25, 2008, at 8:49 PM, Chris Idou wrote: I've got a really simple application of core data. It's a document based application,

How to create rounded view for iPhone App

2008-08-26 Thread SridharRao M
Hi, I want to create rounded view for my app. Please any one suggest me how to do it. Regards, Sridhar. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: How to create rounded view for iPhone App

2008-08-26 Thread Andrew Merenbach
Hi, Sridhar, Unfortunately, the iPhone SDK is still under NDA, so the general rule is that no one can talk about the SDK's features to anyone else. Best, Andrew On Aug 26, 2008, at 7:54 PM, SridharRao M wrote: Hi, I want to create rounded view for my app. Please any one suggest

Re: xcode: how to not Go with Instruments

2008-08-26 Thread Michael Ash
On Tue, Aug 26, 2008 at 5:16 PM, steph thirion [EMAIL PROTECTED] wrote: once I launch Instruments from Xcode (with 'Start with Performance Tool'), subsequently everytime I call 'build and go', Instrument launches. I need to close and relaunch xcode to stop that behavior. How do I 'detach'

Anyone got a cleverer idea for a tree view protocol?

2008-08-26 Thread Graham Cox
Hi all, Not directly a Cocoa question, so forgive me for the noise, but before I commit to the following design I wonder if anyone is able to suggest something cleverer/cleaner. This is the best I've come up with but it seems a bit clunky in some ways. I have a general purpose view class

Re: Removing Applications from the Dock Programmatically

2008-08-26 Thread Sherm Pendley
On Tue, Aug 26, 2008 at 9:20 PM, Graff [EMAIL PROTECTED] wrote: NSDictionary *theError = [[NSDictionary alloc] init]; [quitScript executeAndReturnError:theError]; You're leaking the dictionary you created here. Just initialize theError to nil, like this: NSDictionary

how to release CFData

2008-08-26 Thread lajos kamocsay
Hello, I have found several ways to create CFData, but how do I release a CFDataRef? Thanks -lajos ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: how to release CFData

2008-08-26 Thread Graham Cox
CFRelease? On 27 Aug 2008, at 2:26 pm, lajos kamocsay wrote: Hello, I have found several ways to create CFData, but how do I release a CFDataRef? Thanks -lajos ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: how to release CFData

2008-08-26 Thread Phil
On Wed, Aug 27, 2008 at 4:26 PM, lajos kamocsay [EMAIL PROTECTED] wrote: I have found several ways to create CFData, but how do I release a CFDataRef? CFRelease(). More information about Core Foundation's memory management functions is available in the following guide:

re: core data hanging

2008-08-26 Thread Ben Trumbull
Chris, No idea why NSURLConnection is hanging on you. Actually, the information here is incomplete so it might not even be NSURLConnection. Attaching to the app in gdb and getting a stack trace of all the active threads would be useful: 'thread apply all bt' and 'info threads'. I