Writing a notifier app

2008-06-04 Thread Abhiram Dwivedi
Hi, I need to build a functionality similar to gmail notifier. Any pointers if Cocoa would be the right approach or if some other technology (python?) can be used to create such an app? Also, if you know of a similar open source project, it would be great. Can you please suggest where to begin

Re: DTrace probe problem

2008-06-04 Thread radj
I tried the raise() in D script. My driver got the signal but it kinda malfunctioned, it got stuck somehow although it still can accept any signal. Weird. My small experience can't tell me anything. So I googled up some more D trace commands and found system(). I tried this instead: pid$1::dummyC

Re: Drawing over a QTCaptureView

2008-06-04 Thread Ben Lachman
Gordon: I think view:willDisplayImage: is the way to do it, although it is a bit kludgey in my opinion since you have to convert to something drawable and then back. Attached is the code I worked up. It should work on 10.4 and 10.5. All it does is draw a centered rounded square over t

App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?]

2008-06-04 Thread Graham Cox
Thanks for the tip - easy! I wish the bug was that easy here's my stack trace. Looks like the hang is in actually trying to display the "save changes" sheet itself, rather than any particular logic problem, which is what I was assuming was going on. So, I tried some other sheets I have

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 rep

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

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 1

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 O

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 c

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 P

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 doi

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, thank

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; i 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: The best features IMHO are: * Convenie

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; iX /Users/Jeremy/Documents/Apps/Unfuddler2/Base64.m:101: error: 'for' loop initial declarat

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; iX /Users/Jeremy/Documents/Apps/Unfuddler2/Base64.m:101: error: 'for' loop initial declaration used outside C99 mode d

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 drown

[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 volunt

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 http://mooseyard.com/hg/hgwebdir.cgi/MYUtilities/file/c59dec0

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 anothe

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 a

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 p

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 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: 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.

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 a

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 look

Re: NSAppleScript question

2008-06-04 Thread has
Matthew Delves wrote: Greetings and salutations, Is there a way to pass arguments into an AppleScript file using NSAppleScript and other cocoa/obj-c classes? Yes, see NSAppleEventDescriptor and -[NSAppleScript executeAppleEvent:error:]. It's a bit of a chore for anything non- trivial, part

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) www

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

2008-06-04 Thread Alexander Hartner
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 a spinning progress indicator. Everything worked sort

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 ga

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: 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? Qu

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 textStorage]

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 ha

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 t

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 spen

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 som

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 p

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: 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: 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 forwar

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] -

[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: 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

Re: Drawing over a QTCaptureView

2008-06-04 Thread douglas a. welton
Ben, check out the documentation for QTCaptureView delegate: - (CIImage *)view:(QTCaptureView *)view willDisplayImage :(CIImage *)image this will give you access to the display pipeline. later, douglas On Jun 4, 2008, at 4:01 PM, Ben Lachman wrote: I'm wonder what's the easiest way to d

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 impleme

Re: Newbie Question on a method signature

2008-06-04 Thread Shawn Erickson
On Wed, Jun 4, 2008 at 1:26 PM, James Cicenia <[EMAIL PROTECTED]> wrote: > Wow.. > > I didn't know the order of methods was important. They aren't really. It is just a matter of the compiler seeing the declaration for a method/function before it is used. You normally do that by declaring the meth

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 compiler

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, 200

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 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 t

Re: NSPredicateEditorRowTemplate: Custom templateView state

2008-06-04 Thread 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] - [is smaller/greater than] - [Textfield] - [KB/MB/GB] By overriding templateViews

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 Michael Vannorsdel
You have to make sure your header has - (UIColor *) returnUIColorForFont:(NSString *) theString in it so when you use the method in other source files the compiler will know what the arguments and return types to returnUIColorForFont: are. Without this the compiler has to make assumptions

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 *) theString{

Re: Newbie Question on a method signature

2008-06-04 Thread Hamish Allan
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 > return 'id' and accept... I'm guessing your method's definition comes after the code that uses that method, and you have

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: 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

Drawing over a QTCaptureView

2008-06-04 Thread Ben Lachman
I'm wonder what's the easiest way to draw a simple box over a QTCaptureView. Overriding drawRect doesn't work and putting another view over the QTCV doesn't work. Any Thoughts? Thanks, ->Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 du

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 hav

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 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

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: 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: NSAppleScript question

2008-06-04 Thread Ken Ferry
Hi Matthew, It is possible, but it requires either extra libraries or understanding apple events to some extent. An easier way to go, if you can require 10.5, is to use the Scripting Bridge instead of NSAppleScript.

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.

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 (Cocoa-de

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 function

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 s

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 just

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 w

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 Preprocess

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 develo

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 f

Re: CALayer subclass question

2008-06-04 Thread Brian Christensen
On Jun 4, 2008, at 11:57 , Huibert Aalbers wrote: 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. Some snippets of your code might help

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: 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: 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, 2008

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 though

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 setFr

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 i

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: 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 Preprocesso

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 exactly

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 c

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

invoking quicklook via code

2008-06-04 Thread Memo Akten
Hi All, I"m 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: 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

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)

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

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: 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

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 (Cocoa-dev@lists

ArrayController Out of Bounds

2008-06-04 Thread Gerriet M. Denkmann
I have an NSTableView with one column which creates exceptions when sorted. 10.4.11. [ tableColumn infoForBinding: @"value" ] --> NSObservedKeyPath = "arrangedObjects.kMDItemPath"; NSObservedObject = [object class: NSMetadataItem, number of selected objects: 1]; NSOptions = {

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 a

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 moder

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. EDCommo

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 > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=ye

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: 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

  1   2   >