Re: Memory leak when re-alloc Methods

2008-04-15 Thread Mike R. Manzano
Are you calling release on everything you've alloc'd and retain'd? Mike On Apr 14, 2008, at 4:05 PM, [EMAIL PROTECTED] wrote: Hi and sorry for my bad english. I have a nasty leak problem when i realloc several methods of the main class of my app. I have a button that initiate a series of

Re: Getting feedback from application

2008-04-15 Thread Mike R. Manzano
Please read one of the many fine tutorials on the subject, including this one: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/objctutorial.pdf Regards, Mike On Apr 15, 2008, at 1:31 AM, parag vibhute wrote: Hi guys, I have created a cocoa application. Now I would l

Re: Cannot get PDF document show up in PDFView

2008-04-15 Thread Mike R. Manzano
Look up -awakeFromNib. // Called when @implementation MyPDFView [...] // Called when this view is loaded from the nib - (void) awakeFromNib { myDoc = [[[PDFDocument alloc] initWithURL: [ NSURL fileURLWithPath:@"Users/raj/Desktop/ObjectiveC.pdf"]] autorelease]; [self setDocument: myDoc];} }

Re: NSString value mangled in NSDictionary with Garbage Collection

2008-04-14 Thread Mike R. Manzano
Can we see the rest of the code that is currently represented as comments in your example? On Apr 10, 2008, at 3:44 AM, Jason Kravitz wrote: I created a while loop where I am reading through a text file and pulling out certain words based on RegEx criteria. I want to add these words as a c

Re: Tight loop processing

2008-04-10 Thread Mike R. Manzano
Depending on the nature of your simulation, and if you don't mind being Leopard-only, you might break it down into a series of NSOperations and let Cocoa handle the rest for you. Mike On Apr 10, 2008, at 11:00 AM, Don Arnel wrote: Hey all... This is my first time posting to this list. I'

Re: core data and IB outlet binding

2008-04-09 Thread Mike R. Manzano
Are you sure you're calling applyFilter after or during awakeFromNib? i.e., you're not calling applyFilter in some sort of -init, right? Mike On Apr 9, 2008, at 3:31 AM, Torsten Curdt wrote: I have a custom NSCollectionViewItem @interface FilterViewItem : NSCollectionViewItem {

Re: observeValueForKeyPath:... called multiple times on exit

2008-04-08 Thread Mike R. Manzano
I put some code into my observe method to get the arrangedObjects array out of the NSArrayController, and then I print that array to the screen. On exit of the application, the observe method gets called around 7 times, and there doesn't seem to be a difference in the array contents between

Re: Core Animation layer-backed NSViews and mouse handling

2008-04-08 Thread Mike R. Manzano
From "Core Animation for OS X", by Bill Dudney: "Since the view is managing the layer and has to be intimately familiar with what is going on with the layer it is not recommended that we manipulate the layer in any way except through the methods exposed through the view. As long as we use t

Re: Returning a value from a function

2008-04-08 Thread Mike R. Manzano
Well, you can't return anything if your method's return is declared as void. It would have to be the type of object you're returning, which in this case is an NSString. Hence: - (NSString) convertFunctionWithValues:(NSString *) valueOne ... At the end of your method, you would use the return

observeValueForKeyPath:... called multiple times on exit

2008-04-08 Thread Mike R. Manzano
Okay. Here's a weird one: I have an object observing an NSArrayController's "arrangedObjects" property. My observeValueForKeyPath:... is called as expected, except for shutdown. When I quit my application, it is called multiple times, but the array contents haven't changed. The NSArrayContr

Re: Scaling a window background image quickly

2008-04-07 Thread Mike R. Manzano
Do you know if SVG in a webkit view performs faster than a PDF in an NSImageView? Mike On Apr 6, 2008, at 3:38 PM, glenn andreas wrote: If only there were some sort of Scalable Vector Graphics format that were available, oh, yeah, there is - SVG is available via WebKit on Leopard, not to m

Re: Scaling a window background image quickly

2008-04-06 Thread Mike R. Manzano
The bottom gradient is curved so it'd be a bit more difficult to do it with CTGradient, which does linear and radial gradients only. Regardless, I've abandoned this PDF and opted for a much simpler design that uses CTGradient and beziers like you've suggested. A side- effect is that I get be

Re: Scaling a window background image quickly

2008-04-05 Thread Mike R. Manzano
review (on a 2.2 Ghz Core 2 Duo) it need some times to display it. Le 6 avr. 08 à 01:45, Mike R. Manzano a écrit : Unfortunately, that still didn't work. The resultant images continue to be pixelated, as you can see here: http://instantvoodoomagic.com/stickycapture.png In my window'

Re: Scaling a window background image quickly

2008-04-05 Thread Mike R. Manzano
NSImageCacheNever]; Le 5 avr. 08 à 20:26, Mike R. Manzano a écrit : I did try that at first, but the image becomes pixelated when you make the window larger. What I'm trying now is to do an initial scale of the image to some large dimensions, and then doing what you suggested. Maybe it w

Re: Scaling a window background image quickly

2008-04-05 Thread Mike R. Manzano
wards direction. Mike On Apr 5, 2008, at 11:17 AM, Jean-Daniel Dupas wrote: Le 5 avr. 08 à 19:53, Mike R. Manzano a écrit : Hi everyone, I have a window with a custom content view. The content view loads in a PDF image to be used as the window's background. I'd like the image to

Scaling a window background image quickly

2008-04-05 Thread Mike R. Manzano
Hi everyone, I have a window with a custom content view. The content view loads in a PDF image to be used as the window's background. I'd like the image to scale smoothly when the window is resized, so I set the source image to scale when resized (scalesWhenResized returns YES), and in my

NSWindow z-depth

2008-04-01 Thread Mike R. Manzano
Is there a way to get a window's z-depth in relation to my app's other windows? Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-adm

Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure

2008-03-10 Thread Mike R. Manzano
write a NSString to NSData two-way value transformer? It would probably be more bulletproof than relying on something that doesn't work consistently. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar 10, 2008, at 3:

Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure

2008-03-10 Thread Mike R. Manzano
I need the text view to handle multiple fonts and images. It would just be a crying shame if I had to go write a bunch more code to do something that bindings already purports to do. In lieu of having the text view continuously update, is there a way I can manually force the binding to "fir

Re: Button on a button

2008-03-10 Thread Mike R. Manzano
The iPhone does this with its menus (the little blue arrow that shows up to the right of a menu). If you click on the menu item, it selects it, if you click on the blue arrow, it allows you to configure it. I would subclass NSButton. On Mar 10, 2008, at 4:28 PM, John Stiles wrote: There isn

Re: results in attached view

2008-03-10 Thread Mike R. Manzano
On Mar 10, 2008, at 9:12 AM, Torsten Curdt wrote: Hah! Thanks for the pointer! No problemo. So I just create another window in my nib and then add that as a child I assume. Yep. Quicksilver on the other hand just has views inside the nib. How would I display such a view? What's the d

Re: results in attached view

2008-03-10 Thread Mike R. Manzano
How about creating a child window with an NSTableView within it? See "Managing Attached Windows" in NSWindow's reference docs. Mike On Mar 10, 2008, at 7:12 AM, Torsten Curdt wrote: I got a document based app. In the document window I can do a search and would then like to display a the resu

Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure

2008-03-10 Thread Mike R. Manzano
Here's an odd one: I have an NSTextView bound to an attribute of a Core Data entity of type "binary". Works fine. However, if I go into IB and check "Continuously Updates Value" on the NSTextView's bindings settings, subsequent runs of the program tell me that it "Cannot create NSData from

Re: Optional methods

2008-02-21 Thread Mike R. Manzano
Aha. Just want I wanted to know. You're right, I should have tried it first :) Thanks, Mike On Feb 21, 2008, at 8:06 AM, Hamish Allan wrote: On Thu, Feb 21, 2008 at 3:57 PM, Mike R. Manzano <[EMAIL PROTECTED]> wrote: I know about the pattern to shut the compiler up: create