Re: Frame rate check

2008-06-04 Thread Davide Scheriani
yes I was looking just to see the times draawREct get called. is it a weay to set a limit framerate as well? mean 25fps or to ask from the cpu/gpu 120fps? Depends what you mean by frame rate. The number of times drawRect: is called per second? Easy to calculate/present but is it useful? G.

Re: IBOutlet, multiple nibs, method duplication

2008-06-04 Thread Trygve Inda
On Jun 3, 2008, at 2:48 PM, Trygve Inda wrote: Hi, Trygve, With regard to your code duplication, I would use a common NSWindowController superclass, with a subclass for your main window and a subclass for your aux window. Then you can just use the right nib name in each of them, but

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Markus Spoettl
On Jun 3, 2008, at 11:25 PM, Brian Christensen wrote: On Jun 4, 2008, at 2:01 , Markus Spoettl wrote: The window's frame is an animatable property, so you could try something like this: WOW that is very impressive. I didn't imagine it was that easy, thanks so much for the quick help!

Re: Apple Remote and exclusivity

2008-06-04 Thread Jean-Daniel Dupas
Le 4 juin 08 à 01:00, Scott Anguish a écrit : On Jun 3, 2008, at 5:02 AM, Hamish Allan wrote: I don't even know what the Cocoa interface to the Apple Remote is, let alone having used it, let alone being able to troubleshoot it, and I don't imagine everyone here is an expert either...

Re: [SOLVED] Code to convert NSDictionary to binary plist file?

2008-06-04 Thread Jean-Daniel Dupas
Le 4 juin 08 à 04:13, Ken Thomases a écrit : On Jun 3, 2008, at 8:49 PM, David Hoerl wrote: ret = [manager createFileAtPath:@/tmp/binary.plist contents:plist attributes:nil]; You can also do [plist writeToFile:...] to write the data object out. There's nothing wrong with what you

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread Buddy Kurz
For me it is a hot topic because after researching this subject two years ago and reading said archives I started relying on NSMailDelivery and now the powers that be have decided that it should no longer be available. (wondering why?) So I have to rewrite functional code and use a third

Re: Copying NSTextStorage

2008-06-04 Thread Sherm Pendley
On Tue, Jun 3, 2008 at 12:51 PM, Kyle Sluder [EMAIL PROTECTED] wrote: On Tue, Jun 3, 2008 at 11:15 AM, Gordon Apple [EMAIL PROTECTED] wrote: I tried exactly that. It did nothing but a horrendous crash when I tried to type text. I couldn't even trace it. I never even got to the copy part.

Re: NSObjectController needless in Intro to Bindings?

2008-06-04 Thread Jochen Moeller
Hello Ken, thanks for your respond. I already read this link and thought that the NSArrayController Mailbox represents this intervening NSController between the model object and the table view because the table view is not bound direct to the model or a custom controller. To reformulate

Re: totally confused by bindings settings

2008-06-04 Thread Ken Thomases
On Jun 4, 2008, at 12:05 AM, Daniel Child wrote: I worked out a super basic bindings case where table columns display the ivars of a Word class via bindings. Words have three ivars with standard accessors. An ArrayController manages a table of these words Hmm. An NSArrayController doesn't

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Ken Thomases
On Jun 4, 2008, at 2:13 AM, Markus Spoettl wrote: On Jun 3, 2008, at 11:25 PM, Brian Christensen wrote: On Jun 4, 2008, at 2:01 , Markus Spoettl wrote: The window's frame is an animatable property, so you could try something like this: WOW that is very impressive. I didn't imagine it was

Re: NSObjectController needless in Intro to Bindings?

2008-06-04 Thread Ken Thomases
On Jun 4, 2008, at 3:18 AM, Jochen Moeller wrote: I already read this link and thought that the NSArrayController Mailbox represents this intervening NSController between the model object and the table view because the table view is not bound direct to the model or a custom controller. To

make print scale disable

2008-06-04 Thread norio
Hi, I'd like to make Print Scale to be disable for a purpose. Is there any ways to do that? Thanks in advance. Norio ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

sync with filemaker

2008-06-04 Thread Pandit Pakhurde
Hello List, I am getting one serious problem regarding my application. Basically , in my application I able to sync iCalendar events with my xCode app named as CalendarItems. Now I have one another application which is FileMaker Pro 9. I am using it as my database. I have to sync this

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread Torsten Curdt
On Jun 4, 2008, at 05:15, Kyle Sluder wrote: On Tue, Jun 3, 2008 at 10:45 PM, Frederick C. Lee [EMAIL PROTECTED] wrote: I need to send data through the mail from within my Cocoa program. This is to be for general release; so it must be stable. Why has every single person under the sun

NSAppleScript question

2008-06-04 Thread Matthew Delves
Greetings and salutations, Is there a way to pass arguments into an AppleScript file using NSAppleScript and other cocoa/obj-c classes? The reason that I ask is I am wanting to find out the path to a song in iTunes. I have a script which does this for hard coded values, though am

Re: make print scale disable

2008-06-04 Thread Kyle Sluder
On Wed, Jun 4, 2008 at 6:14 AM, norio [EMAIL PROTECTED] wrote: I'd like to make Print Scale to be disable for a purpose. Is there any ways to do that? Did you read the NSPrintPanel documentation, specifically the NSPrintPanelShowsScaling bitflag in the NSPrintPanelOptions enum, which is used as

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread Ludovic Marcotte
Torsten Curdt wrote: Because it's one of the basic things to learn? XML parsing, sending email, HTTP uploads, downloads, XMLRPC/SOAP interactions. No surprises here. Anyway! I made a quick write-up about sending mails from Cocoa http://vafer.org/blog/20080604120118 Of course they will have

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread Craig Hunter
Message: 8 Date: Tue, 3 Jun 2008 22:45:49 -0400 From: Frederick C. Lee [EMAIL PROTECTED] Subject: What's the NSMailDelivery replacement for Leopard and Beyond? To: Cocoa Developers cocoa-dev@lists.apple.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII;

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread David Hoerl
There is an open source option in the works. Look at EDMessage on: http://www.mulle-kybernetik.com/software/EDFrameworks/ You will see three open source frameworks. EDMessage provides equivalent if not more functionality than NSMailDelivery by directly interacting with a SMTP server.

Itunes video wall core animation

2008-06-04 Thread Davide Scheriani
just wonder where can I find the famous Itunes Wall Video project source.. IF apple have released somewhere. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

garbage collection and WebKit plugins

2008-06-04 Thread Duncan Robertson
When trying to view a webpage in an app using WebKit I ran into an unexpected problem viewing content that required a plugin (Flash in this case). When NOT using garbage collection the plugin displayed content as expected, but when garbage collection is activated, the plugin only appeared

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread colo
Just curious if some frameworks have been thought of for Animation. In the likes of Jquery or others. For example window.show(fade_in, slow); That way animations can be very clean and simple to write and test. ___ Cocoa-dev mailing list

Re: Frame rate check

2008-06-04 Thread Shawn Erickson
On Tue, Jun 3, 2008 at 11:38 PM, Davide Scheriani [EMAIL PROTECTED] wrote: yes I was looking just to see the times draawREct get called. is it a weay to set a limit framerate as well? mean 25fps or to ask from the cpu/gpu 120fps? When you are asked to draw (drawRect:) you really must draw what

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Jean-Daniel Dupas
Le 4 juin 08 à 16:10, colo a écrit : Just curious if some frameworks have been thought of for Animation. In the likes of Jquery or others. For example window.show(fade_in, slow); That way animations can be very clean and simple to write and test. Isn't what CoreAnimation does ?

Re: ArrayController Out of Bounds

2008-06-04 Thread Shawn Erickson
On Wed, Jun 4, 2008 at 6:18 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: When this table contains some rows and I click on the table column header I always get: *** -[NSCFArray objectAtIndex:]: index (-1) beyond bounds (5) where 5 is the correct number of rows displayed. What am I doing

Re: ArrayController Out of Bounds

2008-06-04 Thread Shawn Erickson
On Wed, Jun 4, 2008 at 7:50 AM, Shawn Erickson [EMAIL PROTECTED] wrote: On Wed, Jun 4, 2008 at 6:18 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: When this table contains some rows and I click on the table column header I always get: *** -[NSCFArray objectAtIndex:]: index (-1) beyond

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Shawn Erickson
On Wed, Jun 4, 2008 at 7:10 AM, colo [EMAIL PROTECTED] wrote: Just curious if some frameworks have been thought of for Animation. In the likes of Jquery or others. For example window.show(fade_in, slow); That way animations can be very clean and simple to write and test. Core Animation

invoking quicklook via code

2008-06-04 Thread Memo Akten
Hi All, Im building a little cocoa app, its mainly a quartz composer composition + custom plugin, which I'm embedding and controlling via QCRenderer. I'm writing a Quartz Composer plugin which creates a few buttons and when you click one I would like to launch a quicktime file, but I would like

Re: ArrayController Out of Bounds

2008-06-04 Thread Keary Suska
6/4/08 8:50 AM, also sprach [EMAIL PROTECTED]: When this table contains some rows and I click on the table column header I always get: *** -[NSCFArray objectAtIndex:]: index (-1) beyond bounds (5) where 5 is the correct number of rows displayed. What am I doing wrong? This is on Tiger

CALayer subclass question

2008-06-04 Thread Huibert Aalbers
Hi, I am starting to work with Core Animation. I have tried to subclass CALayer but I am having problems because for some reason the drawInContext method never gets called, even though I invoke setNeedsDisplay on the layer. What is weird though is that if I override the display method I

Re: NSTextView causes lockups when appending too quickly and/or scrolling

2008-06-04 Thread Ross Carter
On Jun 3, 2008, at 9:32 PM, Nick Zitzmann wrote: On Jun 3, 2008, at 7:25 PM, Steven Moore wrote: It looks like most of the calls are coming from [NSArray indexOfObjectIdenticalTo:], half of which are from [NSSubTextStorage release] and [NSTextStorage removeLayoutManager:]. I'm not

Re: Versioning MainMenu.nib

2008-06-04 Thread Jim Puls
On Jun 3, 2008, at 8:12 PM, Chris Outwin wrote: I have MainMenu.nib and MainMenu(Debug).nib in a Cocoa document app using Xcode 3.0. The (Debug)version has controls only used during development. I am trying to use build settings to dynamically load the MainMenu(Debug).nib when

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Sean McBride
On 6/3/08 11:01 PM, Markus Spoettl said: I have an existing window which I'd like to show and hide using a zooming transition effect. I'd like something similar to the one in iCal (on Leopard) when you double click a calendar entry or in Finder when you press SPACE on an item an the QuickLook

Re: garbage collection and WebKit plugins

2008-06-04 Thread Sean McBride
On 6/4/08 2:07 PM, Duncan Robertson said: When trying to view a webpage in an app using WebKit I ran into an unexpected problem viewing content that required a plugin (Flash in this case). When NOT using garbage collection the plugin displayed content as expected, but when garbage collection is

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Sean McBride
On 6/4/08 2:25 AM, Brian Christensen said: The window's frame is an animatable property, so you could try something like this: - (void)showWindow:(id)window { NSRect startFrom = NSZeroRect; NSRect endAt = [window frame]; CGFloat duration = 5.0; [window

Re: CALayer subclass question

2008-06-04 Thread Brian Christensen
On Jun 4, 2008, at 11:19, Huibert Aalbers wrote: I am starting to work with Core Animation. I have tried to subclass CALayer but I am having problems because for some reason the drawInContext method never gets called, even though I invoke setNeedsDisplay on the layer. What is weird

Re: CALayer subclass question

2008-06-04 Thread Huibert Aalbers
Brian, Thanks, but it didn't work. My understanding is that either setNeedsDisplay or setNeedsDisplayOnBoundsChange:YES can be used to force the layer to draw its content, but something is not working for me. Huibert On 04/06/2008, at 10:49 a.m., Brian Christensen wrote: On Jun 4,

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread [EMAIL PROTECTED]
for simple email, i've used +[NSURL URLWithString:] to create a mailto: url: mailto://[EMAIL PROTECTED] and then open the url. u can also add parameters such as subject and body but i forget the details at the moment (i think its something like ?subject=...) ken

Re: Versioning MainMenu.nib

2008-06-04 Thread Kyle Sluder
On Wed, Jun 4, 2008 at 11:23 AM, Jim Puls [EMAIL PROTECTED] wrote: Check the very beginning of the docs for NSApplication: I would note that foregoing NSApplicationMain is not the best idea. Note the functionally similar -- no guarantee is made that the code provided exactly duplicates the

Re: Versioning MainMenu.nib

2008-06-04 Thread David Carlisle
Can't you just use NSApplication setMainMenu? Or are you committed to doing it with build settings? On Jun 3, 2008, at 9:12 PM, Chris Outwin wrote: I have MainMenu.nib and MainMenu(Debug).nib in a Cocoa document app using Xcode 3.0. The (Debug)version has controls only used during

Re: Versioning MainMenu.nib

2008-06-04 Thread j o a r
On Jun 3, 2008, at 8:12 PM, Chris Outwin wrote: I have MainMenu.nib and MainMenu(Debug).nib in a Cocoa document app using Xcode 3.0. The (Debug)version has controls only used during development. I am trying to use build settings to dynamically load the MainMenu(Debug).nib when

RE: Key-Value pairs

2008-06-04 Thread john darnell
Hello Mr. Thomases: First of all, thank you. For you, better than any of the others provided me what I was looking for; the theory behind the system. That was what I was looking for. This meal you served is a hearty one, and I will not likely be able to consume it all in one sitting, but I

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Stefan Werner
On Jun 4, 2008, at 8:24 AM, Sean McBride wrote: Alas, TransitionWindow() is deprecated and not available in 64. So really I don't recommend it. Technically speaking, it's not deprecated (at least it's not marked a such in the documentation). If you don't need 64-bit support, it might

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Sean McBride
On 6/4/08 10:18 AM, Stefan Werner said: On Jun 4, 2008, at 8:24 AM, Sean McBride wrote: Alas, TransitionWindow() is deprecated and not available in 64. So really I don't recommend it. Technically speaking, it's not deprecated (at least it's not marked a such in the documentation). I suppose.

Problem with cblas_sgemm in 64 bit build

2008-06-04 Thread Rick Hoge
I've been tesing a 64 bit build of an application that uses the BLAS function cblas_sgemm to multiply two matrices. The code works fine in 32 bit builds (building with Xcode 3.0 on Leopard 10.5.3) There is a strange problem that I think I have isolated to the output of the above

Re: Problem with cblas_sgemm in 64 bit build

2008-06-04 Thread Kyle Sluder
Take a look at NSInteger and CGFloat, and the 64-Bit Transition Guide for Cocoa: http://developer.apple.com/documentation/Cocoa/Conceptual/Cocoa64BitGuide/ConvertingExistingApp/chapter_4_section_3.html --Kyle Sluder ___ Cocoa-dev mailing list

Re: NSAppleScript question

2008-06-04 Thread Matt Neuburg
On Wed, 4 Jun 2008 21:09:53 +1000, Matthew Delves [EMAIL PROTECTED] said: Greetings and salutations, Is there a way to pass arguments into an AppleScript file using NSAppleScript and other cocoa/obj-c classes? The reason that I ask is I am wanting to find out the path to a song in iTunes. I have

Re: The KVO Race

2008-06-04 Thread Hamish Allan
On Tue, Jun 3, 2008 at 8:20 PM, Gordon Apple [EMAIL PROTECTED] wrote: I guess I don't know hw to use that. The particular situation was a nib that is document related, but loaded and opened later by menu. Ah, okay. But the solution is essentially the same: set up the observers when you're

Re: IBOutlet, multiple nibs, method duplication

2008-06-04 Thread Hamish Allan
On Tue, Jun 3, 2008 at 10:21 PM, Trygve Inda [EMAIL PROTECTED] wrote: Since the IBOutlets in Main point to a different Nib than the IBOutlets in Aux (even though they are functionally identical) is there a good, clean way to manage this? Can you not wire the IBOutlets in Aux to the File's

Re: IBOutlet, multiple nibs, method duplication

2008-06-04 Thread Trygve Inda
On Tue, Jun 3, 2008 at 10:21 PM, Trygve Inda [EMAIL PROTECTED] wrote: Since the IBOutlets in Main point to a different Nib than the IBOutlets in Aux (even though they are functionally identical) is there a good, clean way to manage this? Can you not wire the IBOutlets in Aux to the File's

Re: IBOutlet, multiple nibs, method duplication

2008-06-04 Thread Hamish Allan
On Wed, Jun 4, 2008 at 8:17 PM, Trygve Inda [EMAIL PROTECTED] wrote: I'd need two instances of WindowController. The way I see it, you have a choice: either a single instance of a controller with 2n outlets, or two instances of a controller with n outlets. If you want to have one controller

Re: IBOutlet, multiple nibs, method duplication

2008-06-04 Thread Trygve Inda
On Wed, Jun 4, 2008 at 8:17 PM, Trygve Inda [EMAIL PROTECTED] wrote: I'd need two instances of WindowController. The way I see it, you have a choice: either a single instance of a controller with 2n outlets, or two instances of a controller with n outlets. If you want to have one

Re: garbage collection and WebKit plugins

2008-06-04 Thread Duncan Robertson
On 4 Jun 2008, at 16:30, Sean McBride wrote: Probably. :( Any framework, bundle, or library used by a GC application must also support GC. So frameworks like Cocoa.framework are built as 'dual mode' meaning they can be linked into both GC and non-GC apps. Probably the flash plugin is not

Re: IBOutlet, multiple nibs, method duplication

2008-06-04 Thread Hamish Allan
On Wed, Jun 4, 2008 at 8:46 PM, Trygve Inda [EMAIL PROTECTED] wrote: Thoughts? It sounds like you're going for the two instances of the same class approach. In which case, you have a single combined controller class with your singe set of outlets and actions. Set your File's Owner in each of

Newbie Question on a method signature

2008-06-04 Thread James Cicenia
I have the following: ((ProjectListCell *)cell).budgetHealth.textColor = [self returnUIColorForFont:s]; And here is my method: - (UIColor *) returnUIColorForFont:(NSString *) theString{ if([theString compare:@1] == NSOrderedSame){ return [UIColor greenColor];

Re: Newbie Question on a method signature

2008-06-04 Thread Bill Bumgarner
Class names changed to not perpetuate NDA violation... On Jun 4, 2008, at 1:14 PM, James Cicenia wrote: I have the following: ((ProjectListCell *)cell).budgetHealth.textColor = [self returnNSColorForFont:s]; And here is my method: - (NSColor *) returnNSColorForFont:(NSString *)

Re: Newbie Question on a method signature

2008-06-04 Thread James Cicenia
Wow.. I didn't know the order of methods was important. thanks James On Jun 4, 2008, at 3:20 PM, Hamish Allan wrote: On Wed, Jun 4, 2008 at 9:14 PM, James Cicenia [EMAIL PROTECTED] wrote: why does it tell me: warning: (Messages without a matching method signature will be assumed to

Re: Newbie Question on a method signature

2008-06-04 Thread Andrew Merenbach
Hi, James, I'd say, though, that the order of methods isn't actually important, as long as you've declared them in your @interface context -- generally in your header file. Hope this helps. :) Cheers, Andrew On Jun 4, 2008, at 1:26 PM, James Cicenia wrote: Wow.. I didn't know

Re: Newbie Question on a method signature

2008-06-04 Thread Bill Bumgarner
On Jun 4, 2008, at 1:26 PM, James Cicenia wrote: I didn't know the order of methods was important. Objective-C is C + a set of syntactic extensions that yields an object model. As such, you need to follow the rules of C and ensure that things are declared prior to use. b.bum

Re: Newbie Question on a method signature

2008-06-04 Thread Michael Watson
It's not the method order, it's declaration vs definition. The compiler scans the file top to bottom, so you must declare a method's prototype before you actually use it anywhere, otherwise the compiler will give you a warning because it hasn't seen the protoype yet. -- m-s On 04 Jun,

Re: Newbie Question on a method signature

2008-06-04 Thread Michael Vannorsdel
If the method is defined above the place you use it, you can avoid compiler warnings. But the most common and more correct thing to do is declare the method in the header with the rest of your class so anyone that imports that header will know the specifics of that method (and the

Re: Newbie Question on a method signature

2008-06-04 Thread James Cicenia
OK - When I put the method ahead of the call it compiled and work. So I decided to declare it in my header as: - (UIColor *) returnUIForFont: (NSString *) theString; Now the compiler complains: /Users/jcicenia/Documents/iPhone/TOSPhone/ProjectViewController.m:142: warning: incomplete

Re: Newbie Question on a method signature

2008-06-04 Thread Hamish Allan
On Wed, Jun 4, 2008 at 9:38 PM, James Cicenia [EMAIL PROTECTED] wrote: What the heck is wrong with my declaration? It's for a method called returnUIForFont:, not returnUIColorForFont:. Take a few minutes to try to work out what's wrong before asking the list. Finding your own mistakes is an

[SOLVED2] Code to convert NSDictionary to binary plist file?

2008-06-04 Thread David Hoerl
[For the archives, or anyone else interested in this topic] Ken Thomases provided a shorter version, by having the NSData instance write the file. Jean-Daniel Dupas suggested using CFPropertyListWriteToStream to bypass the intermediate NSData object (a speed and memory footprint improvement)

Re: NSPredicateEditorRowTemplate: Custom templateView state

2008-06-04 Thread Mario Fischer
Hi Peter, yes of course, thanks! Am 04.06.2008 um 22:27 schrieb Peter Ammon: On Jun 3, 2008, at 12:05 PM, Mario Fischer wrote: Hi - - I use the NSPredicateEditor with a custom NSPredicateEditorRowTemplate - This custom component should implement something like this: [Filesize] -

Re: invoking quicklook via code

2008-06-04 Thread Jonathan Dann
Is it possible to somehow just launch the quicklook window for a quicktime file? The quicklook framework is private and therefore should cannot be reliably used in an app. There are a few site out there that give example code that calls it though. You could use NSWorkspace to bring

Re: 10.5 Only: If I say NO, NSOutlineView ignores cmd key, does its own thing

2008-06-04 Thread Corbin Dunn
On Jun 3, 2008, at 8:57 PM, Jerry Krinock wrote: I use an NSOutlineView. I have implemented an action, myAction, which is targetted by a main menu item, which is in turn assigned the keyboard shortcut cmd+upArrow. In some situations, myAction is not allowed, so -validateMenuItem: in my

Re: NSObjectController needless in Intro to Bindings?

2008-06-04 Thread Jochen Moeller
Thanks a lot for your explanation :-) Cheers, Jochen Am 04.06.2008 um 11:21 schrieb Ken Thomases: On Jun 4, 2008, at 3:18 AM, Jochen Moeller wrote: I already read this link and thought that the NSArrayController Mailbox represents this intervening NSController between the model object

Re: invoking quicklook via code

2008-06-04 Thread Nick Zitzmann
On Jun 4, 2008, at 3:48 PM, Jonathan Dann wrote: The quicklook framework is private and therefore should cannot be reliably used in an app. There are a few site out there that give example code that calls it though. Since when was this? QuickLook is not a private framework, and it is

Re: invoking quicklook via code

2008-06-04 Thread Memo Akten
Thanks for the replies guys. What I would like to do, may be a lot simpler than what i may have explained. I just want my app to launch the quicktime movie, in what looks like exactly like the finder quicklook window - in fact if its possible to even somehow do it with an applescript or

Re: invoking quicklook via code

2008-06-04 Thread Charles Steinman
--- Memo Akten [EMAIL PROTECTED] wrote: Is it possible to somehow just launch the quicklook window for a quicktime file? The publicly available way to activate Quick Look is to call the qlmanage command line tool. Why they didn't make the QuickLookUI framework public is beyond me (I spent

Re: invoking quicklook via code

2008-06-04 Thread Nick Zitzmann
On Jun 4, 2008, at 4:25 PM, Memo Akten wrote: Thanks for the replies guys. What I would like to do, may be a lot simpler than what i may have explained. I just want my app to launch the quicktime movie, in what looks like exactly like the finder quicklook window - in fact if its possible

Re: 10.5 Only: If I say NO, NSOutlineView ignores cmd key, does its own thing

2008-06-04 Thread Jerry Krinock
On 2008 Jun, 04, at 14:53, Corbin Dunn wrote: http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSMenu Disabled key equivalents passed throughPrior to Leopard, key equivalents corresponding to disabled menu items would be ignored. In Leopard, your application now has a chance to

Re: NSTextView causes lockups when appending too quickly and/or scrolling

2008-06-04 Thread Steven Moore
Have you tried turning on GC? At least that will move object finalization into a background thread. You might want to look at NSLayoutManager - setAllowsNonContiguousLayout: With both of these changes in place, and a bit of optimization on my part (apparently, [[myTextView

Re: invoking quicklook via code

2008-06-04 Thread Jonathan Dann
On 4 Jun 2008, at 23:18, Nick Zitzmann wrote: On Jun 4, 2008, at 3:48 PM, Jonathan Dann wrote: The quicklook framework is private and therefore should cannot be reliably used in an app. There are a few site out there that give example code that calls it though. Since when was this?

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread has
Buddy Kurz wrote: For me it is a hot topic because after researching this subject two years ago and reading said archives I started relying on NSMailDelivery and now the powers that be have decided that it should no longer be available. (wondering why?) So I have to rewrite functional code and

Re: NSTextView causes lockups when appending too quickly and/or scrolling

2008-06-04 Thread Douglas Davidson
On Jun 4, 2008, at 3:54 PM, Steven Moore wrote: With both of these changes in place, and a bit of optimization on my part (apparently, [[myTextView textStorage] paragraphs] comes with a lot of overhead.. not surprising, when I think about it), my app is in much better shape. I think the

Re: invoking quicklook via code

2008-06-04 Thread Memo Akten
Thanks for the tips guys, qlmanage -p seems to do the trick for now - though I guess I won't have any control over it? or can detect when its finished? (or can that be done with AppleScript or something)... and now lets see if it works from within a QCPlugIn :P Memo (Mehmet S. Akten)

Re: Manipulating images with meta-data

2008-06-04 Thread Randall Meadows
On Jun 3, 2008, at 3:11 PM, Heinrich Giesen wrote: I'm about to resort to using a third-part solution This is a good idea! My favourite program is exiftool by Phil Harvey: http://www.sno.phy.queensu.ca/~phil/exiftool/ exiftool -Orientation=8 -n a.jpg will do the job. Yep, it does, and

no copy/paste - responder chain problem?

2008-06-04 Thread Torsten Curdt
I have an app. First NIB loaded includes a menu with the usual edit items (copy/paste). Triggered from the menu I load another NIB and show a panel from it. None of the NSTextFields/NSTextViews support the usual copy-and-paste ...unless you use the context menu on them. Copy and paste are

Re: 10.5 Only: If I say NO, NSOutlineView ignores cmd key, does its own thing

2008-06-04 Thread Corbin Dunn
On Jun 4, 2008, at 3:37 PM, Jerry Krinock wrote: On 2008 Jun, 04, at 14:53, Corbin Dunn wrote: http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSMenu Disabled key equivalents passed throughPrior to Leopard, key equivalents corresponding to disabled menu items would be ignored.

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Hamish Allan
Hi Alex, On Thu, Jun 5, 2008 at 12:10 AM, Alexander Hartner [EMAIL PROTECTED] wrote: 1.) I gathered i have to create a new NSAutoReleasePool in my threaded method. Is this correct ? Yes. 2.) During execution of this I am updating the UI components from a thread which is not the main

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Randall Meadows
On Jun 4, 2008, at 5:10 PM, Alexander Hartner wrote: I have an application which refreshes a NSTable with data from a network server. The refresh can take several seconds, and might even fail when the server is not accessible. During the refresh process I would like to display a sheet with

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Stefan Werner
On Jun 4, 2008, at 4:10 PM, Alexander Hartner wrote: 1.) I gathered i have to create a new NSAutoReleasePool in my threaded method. Is this correct ? Yes, every thread needs a separate AutoReleasePool. I don't know from the top of my head if NSThread creates one for you (I usually use

Re: invoking quicklook via code

2008-06-04 Thread has
Nick Zitzmann wrote: Thanks for the replies guys. What I would like to do, may be a lot simpler than what i may have explained. I just want my app to launch the quicktime movie, in what looks like exactly like the finder quicklook window - in fact if its possible to even somehow do it with an

Re: RESTful API's - Easy way to interact?

2008-06-04 Thread Jeremy
Actually, After reading more about the RESTful API that they are using, it looks like it requires Base64. Is there any C library that is free to use and allows this functionality? Jeremy I have often felt that programming is an art form, whose real value can only be appreciated by

Re: RESTful API's - Easy way to interact?

2008-06-04 Thread Joseph Heck
You might look in Jens MYUtilities package (http://mooseyard.com/hg/hgwebdir.cgi/MYUtilities/ ) he has a nice category class for doing Base64 work on NSData - http://mooseyard.com/hg/hgwebdir.cgi/MYUtilities/file/c59dec088990/Base64.h

[Moderator] List Guidelines - PLEASE READ

2008-06-04 Thread Scott Anguish
Please stay on-topic There are currently more than 4000 subscribers to this list. In order to keep the list useful please stay on topic and stick to technical discussion. While Apple engineers often subscribe to the list and answer questions, they do so on a

Re: Drawing over a QTCaptureView

2008-06-04 Thread Gordon Apple
And then what can you do with it? Although I've been able to rotate the image with a transform, I still haven't figured out how to clip the image to a Bezier. You can't focus and draw into a CIImage like you can a NSImage. If it were the latter, I could just use NSBezier setClip. After

Re: RESTful API's - Easy way to interact?

2008-06-04 Thread Jeremy
Joseph, I have downloaded and used those files (hopefully can get them to work) but upon build (not using them yet) I get this error: for( int i=0; ilength; i+=1 ) X /Users/Jeremy/Documents/Apps/Unfuddler2/Base64.m:101: error: 'for' loop initial declaration used outside C99 mode

Re: RESTful API's - Easy way to interact?

2008-06-04 Thread Randall Meadows
On Jun 4, 2008, at 6:59 PM, Jeremy wrote: Joseph, I have downloaded and used those files (hopefully can get them to work) but upon build (not using them yet) I get this error: for( int i=0; ilength; i+=1 ) X /Users/Jeremy/Documents/Apps/Unfuddler2/Base64.m:101: error: 'for' loop

Re: C99 [was: RESTful API's - Easy way to interact?]

2008-06-04 Thread Jens Alfke
On 4 Jun '08, at 6:06 PM, Randall Meadows wrote: Two ways: 1) int i; for(i=0; ilength; i+=1 ) B) Adjust the C Language Dialect project setting to include C99. I'd recommend the latter. C99 is backward compatible has a lot of useful additions to C. This topic came up recently on the

Re: How to implement window fade-in fade-out effects

2008-06-04 Thread Markus Spoettl
On Jun 4, 2008, at 8:32 AM, Sean McBride wrote: That'll work, but in my experience if any of the controls in the window make use of 'autoresizing springs' then they will resize incorrectly if starting from a window size smaller that the control's minimum size. I'll keep that in mind,

Re: 10.5 Only: If I say NO, NSOutlineView ignores cmd key, does its own thing

2008-06-04 Thread Jerry Krinock
On 2008 Jun, 04, at 16:39, Corbin Dunn wrote: It sounds like you think it is incorrect to have NSTableView handle cmd-up/down like plain up/down. Please log a bug for this; I'll consider changing it. No, I was just asking. I don't have any religion on this. However, It doesn't stop

Re: invoking quicklook via code

2008-06-04 Thread Julien Jalon
In fact, this is not entirely true... there is no public way to activate Quick Look. qlmanage is for debugging purpose only. What's public is: 1) QLThumbnailImageCreate() in QuickLook framework 2) ImageKit usage of Quick Look -- Julien On Wed, Jun 4, 2008 at 3:29 PM, Charles Steinman [EMAIL

Re: C99 [was: RESTful API's - Easy way to interact?]

2008-06-04 Thread Sean McBride
Jens Alfke ([EMAIL PROTECTED]) on 2008-6-4 9:18 PM said: I'd recommend the latter. C99 is backward compatible has a lot of useful additions to C. This topic came up recently on the xcode-users list and I posted this plug: *SNIP* And if that's not enough for you, you can set the compiler

Re: What's the NSMailDelivery replacement for Leopard and Beyond?

2008-06-04 Thread has
On 5 Jun 2008, at 00:01, has wrote: What's wrong with third-party frameworks? To add to the list of third-party options, just ran across this blog post which names a couple more: http://vafer.org/blog/20080604120118 HTH has -- Control AppleScriptable applications from Python, Ruby and

Where to start looking to fix hang?

2008-06-04 Thread Graham Cox
In my app I'm getting a hang when my main document window is asked to close. This occurs only if there are unsaved changes, but it hangs before the unsaved changes sheet is presented. If I link against the 10.4u SDK (but still run on 10.5), this does not occur, but if I link against the

Re: Where to start looking to fix hang?

2008-06-04 Thread j o a r
On Jun 4, 2008, at 9:17 PM, Graham Cox wrote: Where should I start to look to debug/fix this? I just can't see where I need to set a breakpoint to begin with. Run your app in the debugger. When it hangs, hit the pause button in the debugger and take a look at the backtrace in the thread

Re: Where to start looking to fix hang?

2008-06-04 Thread Jason Coco
You can use the Spin Control application (/Developer/Applications/ Performance Tools/Spin Control.app) to start... that will let you know what's going on when it starts to hang (this application profiles everything, so just start it before you launch your application, launch your app and

  1   2   >