Re: still cant get bezier paths working for me.

2008-02-25 Thread Jerry Krinock
On 2008 Feb, 25, at 21:41, Graham wrote: If you need to draw all the paths you've created so far, you'll need to store each path in a list (array) and draw all of them in drawRect: Yes, and I don't see -lockFocus and -unlockFocus in your -bezierPath method. My first drawings didn't work u

RegisterProcess failed (error = -50) on NSAttributedString

2008-02-25 Thread Phill Kelley
I wrote a command-line program in the early part of last year. Basically, it reads a plist which contains URLs of web pages to monitor, and appends to an RSS feed whenever one of the pages changes. It is linked against Foundation and AppKit. The core of this program includes the following: NSD

Re: still cant get bezier paths working for me.

2008-02-25 Thread Graham
On mouse down: open a new path, moveTo the current point. Store this path somewhere your view can find it (hint: in an ivar) On mouse dragged: append a lineTo element to the path with the current point. Use the path's bounds so far (plus a bit to allow for the stroke width) to refresh the v

Re: Observing with GC

2008-02-25 Thread Bill Bumgarner
On Feb 25, 2008, at 8:38 PM, Rob Keniger wrote: On 26/02/2008, at 1:02 AM, glenn andreas wrote: Note that in the non-GC world, you can't do that in -dealloc (since the KVO "warning" about deallocating something that is still be observed happens before the call to dealloc), so it's unclear if

still cant get bezier paths working for me.

2008-02-25 Thread Development
Well... bezierpaths have officially confused me beyond reason... I am hoping that some one will be able to help me based on the amount of code that I can paste in to an email with out it getting bounced. First, I am trying to create a pen tool similar to something you'd find in photoshop. A

Re: Observing with GC

2008-02-25 Thread Rob Keniger
On 26/02/2008, at 1:02 AM, glenn andreas wrote: Note that in the non-GC world, you can't do that in -dealloc (since the KVO "warning" about deallocating something that is still be observed happens before the call to dealloc), so it's unclear if there isn't some similar helpful warning befo

Re: Observing with GC

2008-02-25 Thread David Carlisle
So in the non_GC world, where is the best place to - removeObserver:forKeyPath: if not in -dealloc? On Feb 25, 2008, at 8:02 AM, glenn andreas wrote: Note that in the non-GC world, you can't do that in -dealloc (since the KVO "warning" about deallocating something that is still be observed

Re: Creating a NSView with Interface Builder

2008-02-25 Thread Jaime Magiera
On Feb 25, 2008, at 4:41 PM, Herr Thomas Bartelmess wrote: Hello, i'm currently working on a Plugin. My problem is that i have to provide a preference View. I have to give a NSView to the programm. Currently i wrote a NSView Subclass, but its to much work to do every button an textfield b

which choice to implement iterations on separate threads

2008-02-25 Thread Jaime Magiera
Hello, I'm trying to get a sense of what folks are doing for applications with individual threads for pulling samples at timed intervals, updating UI, etc. Looking over the docs, the options are NSTImer, NSThread and the new NSOperationQueue. At a casual glance, NSOperationQueue doesn't h

Re: - outlineView:willDisplayCell:forTableColumn:item: and selected item

2008-02-25 Thread Ken Ferry
Also, I'd be pretty surprised if this actually showed up in perf profiling. Do you mean 'heavyweight', or annoying? :-) > > but it seems a lot more heavyweight. You have to do: > > > > [[outlineView selectedRowIndexes] containsIndex:[outlineView > rowForItem:item]] -Ken On Mon, Feb 25,

Re: - outlineView:willDisplayCell:forTableColumn:item: and selected item

2008-02-25 Thread Ken Ferry
The pre-leopard code isn't pretty. The AppKit relnotes give the old path while motivating the backgroundStyle API. I'm not sure if this is 100% complete.. > Prior to Leopard, you may have noticed that text turns white in selected > table view rows. The > mechanism that controlled this behavior,

Creating a NSView with Interface Builder

2008-02-25 Thread Herr Thomas Bartelmess
Hello, i'm currently working on a Plugin. My problem is that i have to provide a preference View. I have to give a NSView to the programm. Currently i wrote a NSView Subclass, but its to much work to do every button an textfield by code. My question is, how can I design an View in Interfac

Failed to capture Key Equivalent on Mac 10.4 but Succeeded on Mac 10.5

2008-02-25 Thread Kan Cheng
Dear all, I'm writing a demo which is a carbon application hosting a WebView but without menu. Then I found that the pasting/copying/cutting functionality does not work on WebView when Command+V keys down event is raised. So that I implemented the performKeyEquivalent: method to capture the Key

- outlineView:willDisplayCell:forTableColumn:item: and selected item

2008-02-25 Thread John Stiles
In my outline view, I'm using an NSTextFieldCell and setting the item's color via setTextColor:. This works fine, but for some colors, it's almost impossible to see when the item is selected. I'd like to always make the text white if the item is selected. In Leopard, I know I can use [cell b

Re: Table column index

2008-02-25 Thread Quincey Morris
On Feb 25, 2008, at 15:12, glenn andreas wrote: And it actually hints to the contrary, since -tableColumns is document to include the hidden columns as well (and doesn't say if they are at the end or in the middle) I just tried it, and the column numbers seem to match up with the array i

Re: NSBorderlessWindowMask and NSResizableWindowMask

2008-02-25 Thread John Stiles
Borderless windows don't support all the things that normal windows do; the resize widget is one example. Sorry. Why would you want this exactly? It doesn't seem like a typical thing to do… Eric Morzier wrote: Hi, I've tried to create a NSBorderlessWindowMask with the resize indicator (the th

Re: Finding a relative date

2008-02-25 Thread Deborah Goldsmith
Please don't use NSCalendarDate, as it only supports the Gregorian calendar. Please use NSCalendar instead, unless you still need to run on 10.3.x. Deborah Goldsmith Apple Inc. [EMAIL PROTECTED] On Feb 25, 2008, at 11:39 AM, Nir Soffer wrote: On Feb 25, 2008, at 21:27, Randall Meadows wro

Re: NSTreeController with Garbage Collection without CoreData causes problems

2008-02-25 Thread Jonathan Dann
On 25 Feb 2008, at 22:31, Eckart Schlottmann wrote: Hi, I need some help on NSTreeController usage. I use an NSTreecontroller with Garbage Collection and OBJ C 2.0. I have a Structure of Nodes (class FileSystemEntry) which provide children as a NSMutableArray with a getter and setter for t

NSBorderlessWindowMask and NSResizableWindowMask

2008-02-25 Thread Eric Morzier
Hi, I've tried to create a NSBorderlessWindowMask with the resize indicator (the thing in the bottom right corner of a window) but it seems impossible... I don't understand why, and also, what does NSResizableWindowMask is used for? Thanks eric ___

Re: Chaging NSStatusItem menus.

2008-02-25 Thread I. Savant
Also, how can I set it so that instead of text it is a 16x16 image? Sorry, missed this one. How about -setImage:? According to the docs, it "Sets the image that is displayed at the receiver’s position in the status bar to image." -- I.S. ___

Re: Chaging NSStatusItem menus.

2008-02-25 Thread I. Savant
I use barItem extensively. But after "Quitting iTunes" and leaving it be for a while, I clicked it and it did go to the other menu. But it wasn't instantaneous and it seems to be stalling after a while. Also, how can I set it so that instead of text it is a 16x16 image? ... I think I figured

Re: Drawing to a PDF image representation

2008-02-25 Thread I. Savant
How do I draw NSBezierPaths to my pdf representation? Give this a thorough read. http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Introduction/chapter_1_section_1.html It answers your question completely, though you'll need to read most of (if not all) of this gu

Re: Best place to remove observer for NSViewBoundsDidChangeNotification

2008-02-25 Thread Jonathan Dann
On 25 Feb 2008, at 23:15, Jerry Krinock wrote: I presume that sending a notification to a deallocced object causes a crash? Invariably! ;) Oh, yes, it will bite you. Says so right in the documentation of - [NSDocument close]. Funny how I read that so many times last week when overriding

Re: How do copy:/past: messages get sent to NSDocument?

2008-02-25 Thread I. Savant
On Feb 25, 2008, at 5:03 PM, Adam P Jenkins wrote: I'm not sure how you assume that from this single question. I do already understand Cocoa's binding system pretty well, especially since it's quite similar to what Smalltalk has had for many years, and Java's bindings framework as well.

Re: Best place to remove observer for NSViewBoundsDidChangeNotification

2008-02-25 Thread Jerry Krinock
On 2008 Feb, 25, at 14:15, Jonathan Dann wrote: On dealloc, the document calls [[NSNotificationCenter defaultCenter] removeObserver:self], but these notifications still get sent to the dealloc'd instance when the window itself closes. I think this is something to do with the notification b

Re: Table column index

2008-02-25 Thread glenn andreas
On Feb 25, 2008, at 4:41 PM, Quincey Morris wrote: What I was asking about is whether (for example, and assuming a column is selected) [[tableView tableColumns] objectAtIndex: [tableView selectedColumn]] is in fact the NSTableColumn that's selected. It seems likely, but the docume

Table view loses focus

2008-02-25 Thread Quincey Morris
In the following circumstances: -- A NSTableView bound to a NSArrayController -- The array controller has its Auto Rearrange Content checkbox set in IB -- The table view is sorted on a column -- A cell in the sorted column is edited in place (i.e. within the table view) -- The contents of t

Re: NSInvocation question

2008-02-25 Thread Chris Suter
On 26/02/2008, at 1:49 AM, Hank Heijink wrote: I haven't been very clear, my apologies. I may have completely overlooked the best strategy, so let me try to explain what I'm doing. I have to call methods depending on certain conditions. These include passing of time, movement of the cursor

Drawing to a PDF image representation

2008-02-25 Thread ad veloper
List, How do I draw NSBezierPaths to my pdf representation? This method only seems to capture the last NSBezierPath in the saved .pdf, and none of the previous ones, even though they are successfully being drawn to the image using the [image lockFocus] method. Here's some of the implementat

Re: Table column index

2008-02-25 Thread Quincey Morris
On Feb 25, 2008, at 14:06, Adam Gerson wrote: Those methods return NSInteger's. To get a reference to the NSTableColumn you should call something like int column = [[yourTableView selectedColumn] intValue]; NSTableColumn myColumn = [[yourTableView tableColumns] objectAtIndex:column]; It lo

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
Hey, I think I figured out why my change isn't instantaneous like I was complaining before. I have a subclassed menuWillOpen: which updates my data upon open. Maybe I need to rework my code. Is there any if statement that could get me around this code problem? Thanks, Jeremy "For a long t

NSTreeController with Garbage Collection without CoreData causes problems

2008-02-25 Thread Eckart Schlottmann
Hi, I need some help on NSTreeController usage. I use an NSTreecontroller with Garbage Collection and OBJ C 2.0. I have a Structure of Nodes (class FileSystemEntry) which provide children as a NSMutableArray with a getter and setter for the complete arrays: - (NSMutableArray *)internalCh

Re: BezierPath issues

2008-02-25 Thread Graham
On 25/02/2008, at 8:53 AM, Development wrote: I'm sure this is a simple problem Actually, it's not. Creating interactive drawing successfully has many pitfalls. One avenue you might consider is using an already written library. I'm working on one written in Cocoa called DrawKit: http://

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
I.S., I use barItem extensively. But after "Quitting iTunes" and leaving it be for a while, I clicked it and it did go to the other menu. But it wasn't instantaneous and it seems to be stalling after a while. Also, how can I set it so that instead of text it is a 16x16 image? Jeremy "For

Re: NSOutlineView autosaving of expanded/collapsed state

2008-02-25 Thread Jonathan Dann
On 24 Feb 2008, at 22:45, Ralph Manns wrote: Am 24.02.2008 um 23:37 schrieb Jonathan Dann: Hi Jon, thanks for your response and providing your code. Works great. Ralph. You're welcome! Jon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Best place to remove observer for NSViewBoundsDidChangeNotification

2008-02-25 Thread Jonathan Dann
Hi Guys, I have a document-based non-GC app in which I register my document instance to receive an NSViewBoundsDidChangeNotification for my [[mainTextView enclosingScrollView] contentView]. On dealloc, the document calls [[NSNotificationCenter defaultCenter] removeObserver:self], but thes

Re: BezierPath issues

2008-02-25 Thread John C. Randolph
Check out the lasso style crop maker here: http://developer.apple.com/samplecode/Cropped_Image/index.html -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: Layout manager's -rectArrayForCharacterRange:::: returns zero rectangles??

2008-02-25 Thread John Stiles
I managed to reproduce this in a small test app so it's filed as: rdar://5764057 NSLayoutManager cannot get bounding rect of glyph when deleting at end of text For now I will use -performSelector:inMainThread:afterDelay: to kludge around it. It's better than nothing. John Stiles wrote

Re: Table column index

2008-02-25 Thread Adam Gerson
Those methods return NSInteger's. To get a reference to the NSTableColumn you should call something like int column = [[yourTableView selectedColumn] intValue]; NSTableColumn myColumn = [[yourTableView tableColumns] objectAtIndex:column]; Adam On Mon, Feb 25, 2008 at 3:46 PM, Quincey Morris <[EM

Re: How do copy:/past: messages get sent to NSDocument?

2008-02-25 Thread Adam P Jenkins
On Feb 25, 2008, at 4:09 PM, I. Savant wrote: Does anyone know where this is documented, so I can see exactly which events get forwarded to the document and under which circumstances? No, nobody's discovered how this works yet. It's a deep, impenetrable mystery, a black art the depths of

Re: Chaging NSStatusItem menus.

2008-02-25 Thread I. Savant
> - (void)quitItunes:(id)sender > { > [[NSNotificationCenter defaultCenter] removeObserver:self]; > [iTunes quit]; > iTunesQuit = [[NSMenu alloc] initWithTitle:@""]; > qOne = [iTunesQuit addItemWithTitle:@"Start Watching iTunes Again" > action:@selector(beginWatch

Re: NSInvocation question

2008-02-25 Thread Hank Heijink
On Feb 25, 2008, at 3:49 PM, Nir Soffer wrote: The docs don't tell if -invokeWithTarget: will retain the target, so call -setTarget:nil after invoking to be sure you don't create a retain cycle. As far as I understand the documentation, -[invokeWithTarget:] is equivalent to -[setTarget:]

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
August, If you would like to send me your code that would be helpful. But I do my menu bar programatically due to the actual nature of my status bar... I.S., Here's my code to quit iTunes. barItem is the NSStatusItem, iTunes is the Scripting Bridge iTunes Framework, and iTunesQuit is the n

Re: Chaging NSStatusItem menus.

2008-02-25 Thread August Trometer
I just threw together a quick sample project, and I didn't have any trouble switching menus. Simply put: I've got 2 menus, fooMenu and barMenu, both in IB. I have from my controller outlets connected to both. In the controller, [statusItem setMenu:fooMenu]; and [statusItem setMenu:barMen

Re: Chaging NSStatusItem menus.

2008-02-25 Thread I. Savant
> Surprisingly, yes. I referred to the documentation BEFORE asking here. Clearly you're new here ... ;-) > That was the only method that seemed like it would work, but it > doesn't. So, hopefully this can be done. I also tried changing the > title to the one action I want and setting the ac

Re: Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
I.S., Surprisingly, yes. I referred to the documentation BEFORE asking here. That was the only method that seemed like it would work, but it doesn't. So, hopefully this can be done. I also tried changing the title to the one action I want and setting the action but that didn't work. So I'

Re: Chaging NSStatusItem menus.

2008-02-25 Thread I. Savant
> How can I switch menus for an NSStatusItem programatically? So if the > user chooses to "quit" the application from the NSStatusItem I can > switch it's menu to be another menu with launch options. I admit I've never created a status item before, but have you tried the -setMenu: method refe

Re: Finding a relative date

2008-02-25 Thread Nir Soffer
On Feb 25, 2008, at 21:27, Randall Meadows wrote: Given a specific NSDate, I need to be able to find, say, the Sunday before that date, or the Saturday after that date. I was hoping to be able to use +dateWithNaturalLanguage with something like "Sunday before [myDate description]", but th

Chaging NSStatusItem menus.

2008-02-25 Thread Jeremy
Hello, How can I switch menus for an NSStatusItem programatically? So if the user chooses to "quit" the application from the NSStatusItem I can switch it's menu to be another menu with launch options. Thanks, Jeremy "For a long time it puzzled me how something so expensive, so leading ed

Re: How do copy:/past: messages get sent to NSDocument?

2008-02-25 Thread I. Savant
> Does anyone know where this is documented, so I can > see exactly which events get forwarded to the document and under which > circumstances? No, nobody's discovered how this works yet. It's a deep, impenetrable mystery, a black art the depths of which not even Apple fully grasps. Of course I'

How do copy:/past: messages get sent to NSDocument?

2008-02-25 Thread Adam P Jenkins
I'm going through the NSPersistentDocument Core Data Tutorial, which leads you through creating a Core Data Document based application. In the section where they demonstrate implementing copy/paste, they have you add copy: and paste: methods to the MyDocument class, which is a subclass of

Re: NSInvocation question

2008-02-25 Thread Nir Soffer
On Feb 21, 2008, at 18:22, Hank Heijink wrote: I have a document-based application, and my NSDocument subclass runs an experiment which amounts to invoking NSInvocations based on certain conditions. These NSInvocations retain their arguments, and the target of the NSInvocation is the NSDocu

Table column index

2008-02-25 Thread Quincey Morris
Is it safe to assume that the column indexes returned by various NSTableView routines are in fact indexes into [NSTableView tableColumns]? I can't find anything in the documentation that says this. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: NSInvocation question

2008-02-25 Thread Hank Heijink
That's essentially what I ended up doing: I need to save the other three instance variables of the MVActions, so for now I release the NSInvocation ivar before adding an MVAction to the array. Not very elegant maybe, but it does solve my problem. Thanks, Hank On Feb 25, 2008, at 3:30 PM, N

Re: NSInvocation question

2008-02-25 Thread Nir Soffer
On Feb 21, 2008, at 18:22, Hank Heijink wrote: I have a document-based application, and my NSDocument subclass runs an experiment which amounts to invoking NSInvocations based on certain conditions. These NSInvocations retain their arguments, and the target of the NSInvocation is the NSDoc

Resizable Text Cell in NSTableView

2008-02-25 Thread Seth Willits
Howdy, I'm trying to get an editing text cell to resize when changing the value (rename a playlist in iTunes, any file in Finder's list mode, a file in Finder's sidebar, or modify any field in Address Book). I tested the NSText methods for resizing with the code below, but that didn't wo

Re: Finding a relative date

2008-02-25 Thread Nick Zitzmann
On Feb 25, 2008, at 12:27 PM, Randall Meadows wrote: Given a specific NSDate, I need to be able to find, say, the Sunday before that date, or the Saturday after that date. I was hoping to be able to use +dateWithNaturalLanguage with something like "Sunday before [myDate description]", but

Finding a relative date

2008-02-25 Thread Randall Meadows
Given a specific NSDate, I need to be able to find, say, the Sunday before that date, or the Saturday after that date. I was hoping to be able to use +dateWithNaturalLanguage with something like "Sunday before [myDate description]", but that just returns myDate. I know I can brute-force it

Re: Layout manager's -rectArrayForCharacterRange:::: returns zero rectangles??

2008-02-25 Thread John Stiles
Hmm. I tried another approach and it's still no good. This produces NSZeroRect: NSLayoutManager* layout = [myTextView layoutManager]; NSRange glyphRange = [layout glyphRangeForCharacterRange:selection actualCharacterRange:NULL];

Layout manager's -rectArrayForCharacterRange:::: returns zero rectangles??

2008-02-25 Thread John Stiles
I'm trying to write some code which figures out where the insertion point is located, every time the selection changes. (Imagine a text editor which has a "current line number" indicator at the bottom of the screen that stays updated as the user types.) To do this, in my text view's delegate,

Does NSStream's SSL or TLS support work?

2008-02-25 Thread Eric Scharff
I am writing an application where encrypted communication is essential. I have used the non-blocking-esque NSStream libraries for non-encrypted data in applications before, and I'd really like to use NSStream to encrypt transport with TLS (or SSL). Unfortunately, no matter how I set up the con

Re: cascading windows in document architecture

2008-02-25 Thread Jacob Lukas
On Feb 25, 2008, at 12:01, Boyd Collier wrote: Andrea, Thanks for the reply. In my case, the that aren't cascading are all of the same kind, i.e. just very plain text files. I've not yet figured out why this is happening, but perhaps someone will be able to point out something simple th

Re: disowning a bundle?

2008-02-25 Thread Jean-Daniel Dupas
Le 25 févr. 08 à 17:45, Jack Repenning a écrit : On Feb 24, 2008, at 5:42 PM, Ricky Sharp wrote: I do this myself since I also load/unload the same nibs throughout the lifetime of my app. How do I unload a nib? I see NSBundle's several loadNibBlahBlah methods, but no unloadNibBlahBlah's.

Re: cascading windows in document architecture

2008-02-25 Thread Boyd Collier
Andrea, Thanks for the reply. In my case, the that aren't cascading are all of the same kind, i.e. just very plain text files. I've not yet figured out why this is happening, but perhaps someone will be able to point out something simple that we are overlooking. Boyd On Feb 25, 2008, a

Re: disowning a bundle?

2008-02-25 Thread Jack Repenning
On Feb 24, 2008, at 5:42 PM, Ricky Sharp wrote: I do this myself since I also load/unload the same nibs throughout the lifetime of my app. How do I unload a nib? I see NSBundle's several loadNibBlahBlah methods, but no unloadNibBlahBlah's. Sorry if I sound querulous, but I keep getting th

Re: NSURLConnection failing [SOLVED]

2008-02-25 Thread Doug Penny
On Thu, Feb 21, 2008 at 9:23 PM, Doug Penny <[EMAIL PROTECTED]> wrote: > I am trying to use NSURLConnection to fetch a few small images (like > 10k) from various websites. The connections are established and then > the connection:willSendRequest:redirectResponse: delegate method is > called and

Converting from Window to View Coordinates

2008-02-25 Thread Richard Somers
With the user interface resolution at a value other than 1.0, I noticed a small inconstancy in the converted y coordinate of a mouse event in my application. I had subtracted 1.0 from the y coordinate but something was still slightly off. I did some testing and observed that the larger the

issue when application becomes active

2008-02-25 Thread Victor Bovio
Hi, I'm working on a Cocoa application which can have multiple documents, when a document is loaded from file, I run the loading routine via a separate thread (NSThread detachNewThread... etc). The issue is that when I already have an open document and I want to open another doc from file

Re: NSInvocation question

2008-02-25 Thread Hank Heijink
On Feb 22, 2008, at 8:47 PM, Chris Suter wrote: On 23/02/2008, at 2:36 AM, Hank Heijink wrote: The nice thing about NSInvocation is not so much its efficiency (or lack thereof, as the case may be), but the fact that once you've got the thing constructed, you can just call invoke on it, wit

Re: ObjC 2.0 Class +encodeWithCoder:

2008-02-25 Thread Jean-Daniel Dupas
Le 25 févr. 08 à 15:53, Jens Miltner a écrit : Am 21.02.2008 um 23:57 schrieb Jean-Daniel Dupas: No. Every where you can provide an instance, you should be able to provide a Class to. For example, it's perfectly legal to register a Class as a notification observer (and use a Class method

Re: Observing with GC

2008-02-25 Thread glenn andreas
On Feb 24, 2008, at 11:45 PM, Rob Keniger wrote: On 25/02/2008, at 12:30 PM, Quincey Morris wrote: Do we know if KVO observing keeps weak references to observed objects (and observers too, for that matter, but I'm mostly interested in observed objects atm) in a GC-only application? No,

Re: ObjC 2.0 Class +encodeWithCoder:

2008-02-25 Thread Jens Miltner
Am 21.02.2008 um 23:57 schrieb Jean-Daniel Dupas: No. Every where you can provide an instance, you should be able to provide a Class to. For example, it's perfectly legal to register a Class as a notification observer (and use a Class method as target). It also perfectly legal to register a

Re: Garbage Collection makes my app look fat

2008-02-25 Thread Keith Duncan
using Activity Monitor Don't use Activity Monitor to monitor your memory usage. Since you're developing on Leopard you should use Instruments (as you mention) to see what is eating up all of your memory. What objects are taking up the space, are they even objects? My drawing is highly op

Re: Garbage Collection makes my app look fat

2008-02-25 Thread j o a r
On Feb 25, 2008, at 7:00 AM, August Trometer wrote: Then I turned off Garbage Collection, and memory usage plummeted to the level I was expecting. I'm still getting my feet wet with Garbage Collection, and I don't entirely trust it. Is there something I've missed in the docs to explain t

Re: QuickTime Callback

2008-02-25 Thread douglas a. welton
Check the documentation for QTMovie and you'll find the QTMovieDidEndNotification, which is posted upon completion of a movie's playback. On Feb 25, 2008, at 5:21 AM, ali alavi wrote: Hi everyone I have a list of audio segments (specified by a file name and start time and duration). Wha

Re: How to make use of Leopard APIs ?

2008-02-25 Thread Jean-Daniel Dupas
Le 25 févr. 08 à 14:14, Yogesh Potdar a écrit : Hi, I have ported my Tiger cocoa app to Leopard. Now, I want to make use of the methods that have construct AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER with them. Can anybody guide me in using those methods in my code? When I try to use such

Re: Garbage Collection makes my app look fat

2008-02-25 Thread Hamish Allan
On Mon, Feb 25, 2008 at 6:00 AM, August Trometer <[EMAIL PROTECTED]> wrote: > I'd very much like to use GC, but unless I can keep that number down, > I simply can't. Any suggestions? Have you tried [[NSGarbageCollector defaultCollector] collectIfNeeded]? Hamish

How to make use of Leopard APIs ?

2008-02-25 Thread Yogesh Potdar
Hi, I have ported my Tiger cocoa app to Leopard. Now, I want to make use of the methods that have construct AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER with them. Can anybody guide me in using those methods in my code? When I try to use such method and do a 'jump to definition' it indicates nothi

Re: disowning a bundle?

2008-02-25 Thread Uli Kusterer
Two suggestions: 1) Do not bind to a file's owner. Bindings retain what they bind to, and you'll have a retain circle. 2) Use another method to load the NIB, one that gives you an array of all top level objects. My UKNibOwner class does this, for example: UKNibOwner.h Description: Binar

QuickTime Callback

2008-02-25 Thread ali alavi
Hi everyone I have a list of audio segments (specified by a file name and start time and duration). What I want to do is to go through that list and play each segment one after the other. I am using QTMovieView : play method to play audio segments. The problem is that 'play' method returns im

Re: cascading windows in document architecture

2008-02-25 Thread perego
I have a small, relatively simple document based application that I created using Xcode 2.4 and Interface Builder 2.5.4 on a Mac running Tiger. Recently, I moved it to my new iMac running Leopard. On the old Mac, document windows cascade, just as expect, but on my new Mac running Leopard an