Re: Right place to unobserve notifications in a document

2008-08-19 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 20:14 schrieb Andy Lee: On Aug 18, 2008, at 12:49 PM, Negm-Awad Amin wrote: Am Mo,18.08.2008 um 18:18 schrieb Andy Lee: -- but in this case I think -dealloc is not only okay, but sometimes the only correct place to unregister a notification. Suppose an invariant of

Re: Question about respondsToSelector

2008-08-19 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 20:17 schrieb Carmen Cerino Jr.: Does the id type have enough information for the respondsToSelector method to work. I have a class with an ivar of type id, and when I invoke the respondsToSelector method it fails when it should succeed. I am assuming it should work

Deploying project as backward compatible

2008-08-19 Thread mahaboob
Hi all, I'm using xcode 3.1. I deployed my project by changing the build configuration to Release. Now this application is working on Leopard. When I try to open the application in Tiger by double clicking it, the application icon appeared in the dock for a moment and suddenly disappeared. The

Re: Shared NSTextView

2008-08-19 Thread Шкраблюк Павел
Hello, Oleg. I am developing a custom view, sort of a simple graphic editor, where the user can draw graphic boxes of different size. Each box should display its own attributed string bounded by its own size, and when the user double-clicks any box, he becomes able to edit the box's text

Re: document based app, custom ibaction

2008-08-19 Thread Bart
I've created a new xcode project, document based cocoa app. Added this code to the mydocument class: m: -(IBAction)getTotals { NSLog(@Hello); } h: -(IBAction)getTotals; I've created a button in the MyDocument.xib, connected through the firstresponder to the getTotals method.

Window controllers, code obfuscation

2008-08-19 Thread Sumner Trammell
Hi, I'm trying to decipher someone else's code who is no longer available. He did something that I think I can simplify, but I first want to make sure I'm not being completely wrong-headed about what I'm looking at. He does the following in his MyDocument.m file: -

Re: document based app, custom ibaction

2008-08-19 Thread Graham Cox
On 19 Aug 2008, at 5:08 pm, Bart wrote: I've created a new xcode project, document based cocoa app. Added this code to the mydocument class: m: -(IBAction)getTotals { NSLog(@Hello); } h: -(IBAction)getTotals; I've created a button in the MyDocument.xib, connected through the

Re: Window controllers, code obfuscation

2008-08-19 Thread Graham Cox
On 19 Aug 2008, at 5:20 pm, Sumner Trammell wrote: Hi, I'm trying to decipher someone else's code who is no longer available. He did something that I think I can simplify, but I first want to make sure I'm not being completely wrong-headed about what I'm looking at. First off, does this

Re: document based app, custom ibaction

2008-08-19 Thread Bart Beulen
Thanks, Again sloppy programming didn't know this could cause problems although the compiler was not worried. I guess I will not make such an error anymore in the future. :o) Op 19 aug 2008, om 09:31 heeft Graham Cox het volgende geschreven: On 19 Aug 2008, at 5:08 pm, Bart wrote:

Re: NSCalendarDate to be deprecated

2008-08-19 Thread Tom Bernard
As written, 70 microseconds. When I set the calendar's time zone to GMT, the time drops to 43 microseconds. Since my app will only work with dates in GMT, this is a plus. Even so, 40 microseconds is far slower than the 7 - 8 microseconds offered by -[NSCalendarDate dayOfYear]. Unless someone has

Re: Hex representation of NSString

2008-08-19 Thread Negm-Awad Amin
Am Mo,18.08.2008 um 19:15 schrieb Charles Srstka: On Aug 18, 2008, at 6:18 AM, Robert Černý wrote: Actually,I'm trying to debug some weird problems with clipboard. My problem is that data copied into clipboard from legacy java application doesn't match data pasted into Cocoa application.

Re: document based app, custom ibaction

2008-08-19 Thread Bart
Another similar problem. I would like to add a sheet to the button I've created. Normally I would create an IBOutlet and connect the window for the sheet to it, combined with a code to open: [NSApp beginSheet:totalsSheet modalForWindow:[NSApp mainWindow]

Re: IKImageBrowser drag reordering question/problem

2008-08-19 Thread thomas goossens
___ 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-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription:

Re: document based app, custom ibaction

2008-08-19 Thread Graham Cox
On 19 Aug 2008, at 7:03 pm, Bart wrote: Another similar problem. I would like to add a sheet to the button I've created. Normally I would create an IBOutlet and connect the window for the sheet to it, combined with a code to open: [NSApp beginSheet:totalsSheet

Re: document based app, custom ibaction

2008-08-19 Thread Bart Beulen
Sorry, didn't know I had to connect the outlets of the mydocument class through file owner This basically solved my problems. Op 19 aug 2008, om 14:03 heeft Graham Cox het volgende geschreven: On 19 Aug 2008, at 7:03 pm, Bart wrote: Another similar problem. I would like to add a

Re: Window controllers, code obfuscation

2008-08-19 Thread Charles Steinman
--- On Tue, 8/19/08, Sumner Trammell [EMAIL PROTECTED] wrote: Unless I'm being completely stupid about this, he could have done this, right? [[[self windowControllers] objectAtIndex:0] setShouldCascadeWindows:NO]; Or better yet, this? [aController setShouldCascadeWindows:NO];

Re: Question about respondsToSelector

2008-08-19 Thread Carmen Cerino Jr.
Sorry about the sketchy details. Basically I have a wrapper class for the Sequence Grabber, and I want to setup a delegate for the decompression callback. This is where I use the respondsToSelector method: static void SGVideoDecompTrackingCallback( void

Re: Question about respondsToSelector

2008-08-19 Thread Jonathan del Strother
On Tue, Aug 19, 2008 at 2:33 PM, Carmen Cerino Jr. [EMAIL PROTECTED] wrote: Sorry about the sketchy details. Basically I have a wrapper class for the Sequence Grabber, and I want to setup a delegate for the decompression callback. This is where I use the respondsToSelector method: static

Re: Question about respondsToSelector

2008-08-19 Thread Carmen Cerino Jr.
*Smacks forehead* Believe it or not I had that originally and it didn't work. I must of had a type-o in the function header that I was passing to respondsToSelector. Thank you all. I am going to go back to making an ass out of myself in the privacy of my own home. Cheers, Carmen On

Subclassing NSArrayController?

2008-08-19 Thread Chris Poliquin
Hi, I have an ArrayController in IB to manage an array of NSObjects (a custom class) for a TableView. When a new item is inserted via a button connected to insert: a new instance of my class is created and appears in the table. However, I want to be able to control the property values

Re: Subclassing NSArrayController?

2008-08-19 Thread Ron Lue-Sang
Subclass and override newObject which is declared in NSObjectController.h You can set any properties you like from there. - RONZILLA On Aug 19, 2008, at 7:27 AM, Chris Poliquin [EMAIL PROTECTED] wrote: Hi, I have an ArrayController in IB to manage an array of

Re: Subclassing NSArrayController?

2008-08-19 Thread Justin Giboney
This is maybe an answer as well as a question. Doesn't the bindings call the init method when creating a class object? Couldn't you just overwrite the init method on your custom class to set any necessary values? Justin Giboney On Aug 19, 2008, at 8:27 AM, Chris Poliquin wrote: Hi, I

How to reference a NSDocument from a NSView?

2008-08-19 Thread Jeff Mesnil
Hi, I'm currently learning Cocoa by reading the 3rd edition of Cocoa Programming for Mac OS X. One of the excercise is to create an application to draw ovals. I ended up with a project like this: DrawView is a subclass of NSView which is responsible to draw the ovals MyDocument is a subclass of

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
Hey Andy, It's not really the cpu cycles that I'm worried about. It's how quickly a large number of windows closes. I'm fading each window for 1/2 second, in order of appearance. It looks really nice, but there isn't really a need to fade the windows that aren't visible and in fact,

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
Hi Mike, I'm using an NSViewAnimation to fade the windows, which I suspect uses the alpha channel. A window close is nearly instantaneous, so I'm not worried about the tiny window between when I check to see if the window is exposed and when it closes. Of course, because of the

Re: Shared NSTextView

2008-08-19 Thread Douglas Davidson
On Aug 18, 2008, at 9:46 PM, Oleg Krupnov wrote: I could go the simple and dull way and create a separate instance of NSTextView for each box, but I am afraid this could be a waste of resources, because layout manager is costy. Also, most of time I only need to display text in boxes, not to

Re: Including frameworks in your app bundle

2008-08-19 Thread Mark Allan
I've been searching, but I can't find the documentation explaining how to include frameworks in your app bundle (third-party frameworks, for example), so that your user does not have to install these frameworks. Could someone point me at the correct documentation/build settings? Thanks. This

Re: How to reference a NSDocument from a NSView?

2008-08-19 Thread Jeff Mesnil
On Tue, Aug 19, 2008 at 1:37 PM, Jeff Mesnil [EMAIL PROTECTED] wrote: The application is behaving as expected, the model (the ovals) are kept in MyDocument and the DrawView just draws them. But I was wondering if that was the right Cocoa way to do so, to use an IBOutlet to connect a NSView to

Best Way to Handle Properties?

2008-08-19 Thread Dave
Hi, I'm new to Cocoa and a little confused about the best way to handle the following: I'm converting a C based application to Object-C/Cocoa. One of the objects is used to hold properties which are loaded from a data file. I have created an object to represent the C Structure as so:

Re: Deploying project as backward compatible

2008-08-19 Thread Nick Zitzmann
On Aug 19, 2008, at 12:39 AM, [EMAIL PROTECTED] wrote: How can I build application as backward compatible. Usually if an app wouldn't launch, the reason why it wasn't launchable is printed to the system console. Can you open Console.app and tell us the error that gets printed when you

Re: Best Way to Handle Properties?

2008-08-19 Thread Jason Coco
On Aug 19, 2008, at 13:02 , Dave wrote: My specific questions are: Is the NSString allocation and initWithCharacters code the best way to do this? If so, what would the setter look like in this case? If not what is a better way of doing it? Hey Dave, I don't think that

Re: How to reference a NSDocument from a NSView?

2008-08-19 Thread Scott Anguish
On 19-Aug-08, at 12:52 PM, Jeff Mesnil wrote: On Tue, Aug 19, 2008 at 1:37 PM, Jeff Mesnil [EMAIL PROTECTED] wrote: The application is behaving as expected, the model (the ovals) are kept in MyDocument and the DrawView just draws them. But I was wondering if that was the right Cocoa way to

Receiving mouseEnter and mouseExit events.

2008-08-19 Thread David Alter
I'm a little confused on the mouse tracking. I have a view and I want to track when the mouse enters and exits it. If I set setAcceptsMouseMovedEvents to true for my window, (void)mouseMoved: (NSEvent *)theEvent will get called. But, - (void)mouseEntered: (NSEvent *)theEvent and -

Re: Receiving mouseEnter and mouseExit events.

2008-08-19 Thread Quincey Morris
On Aug 19, 2008, at 12:04, David Alter wrote: I'm a little confused on the mouse tracking. I have a view and I want to track when the mouse enters and exits it. If I set setAcceptsMouseMovedEvents to true for my window, (void)mouseMoved: (NSEvent *)theEvent will get called. But, -

Re: document based app, custom ibaction

2008-08-19 Thread Jonathan Hess
Hey Bart - Understanding the File's Owner is really an essential part of understanding how to use Interface Builder effectively. At the most basic level, all NIBs are loaded at runtime with a call to -[NSBundle loadNibNamed:owner:]. The method takes two arguments, a NIB name which is the

NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
Hello, When I hit the Delete key in one of my table views, I get the following error logged to the console: Object NSTableColumn: 0x256740 is not usable with binder of class NSTextValueBinder I also don't get the typical Beep that happens when a key press goes off the end of the

Re: Using Flex/Lex in a Cocoa project

2008-08-19 Thread Ricky Sharp
On Aug 18, 2008, at 10:57 PM, Michael Ash wrote: Note that depending on what kind of results you want, even if all of your data is within the BMP, this *still* won't save you. As a really basic example, consider a simple, obvious character like é. (That's an e with an acute accent on it if

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 3:27 PM, Dave Dribin wrote: Hello, When I hit the Delete key in one of my table views, I get the following error logged to the console: Object NSTableColumn: 0x256740 is not usable with binder of class NSTextValueBinder Further information: I have one column with a

Re: Receiving mouseEnter and mouseExit events.

2008-08-19 Thread David Alter
I just realized that NSTrackingArea is 10.5 and up. I need to support 10.4. mouseEntered and mouseExited have been part of NSResponder from 10.0. To receive these events in 10.4 what should I do? thanks -dave On Aug 19, 2008, at 12:55 PM, Quincey Morris wrote: On Aug 19, 2008, at 12:04,

Re: Receiving mouseEnter and mouseExit events.

2008-08-19 Thread David Alter
Figured it out. I just need to use addTrackingRect:owner:userData:assumeInside enjoy -dave On Aug 19, 2008, at 2:50 PM, David Alter wrote: I just realized that NSTrackingArea is 10.5 and up. I need to support 10.4. mouseEntered and mouseExited have been part of NSResponder from 10.0. To

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Corbin Dunn
On Aug 19, 2008, at 2:20 PM, Dave Dribin wrote: On Aug 19, 2008, at 3:27 PM, Dave Dribin wrote: Hello, When I hit the Delete key in one of my table views, I get the following error logged to the console: Object NSTableColumn: 0x256740 is not usable with binder of class

From JavaMail to Cocoa?

2008-08-19 Thread Christophe Bismuth
Dear community, I've developed a Java application using JavaMail library to get my Gmail messages using IMAP. I'd like to switch my code from Java to Cocoa, is there any official Apple Cocoa API for IMAP? Are Mail API published? Thank you, Christophe

Calling an object from a C function

2008-08-19 Thread Gilbert Mackall
I have a C function from which I would like to call a method. I can't find any documents the cover how to do this. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 5:19 PM, Corbin Dunn wrote: You can in IB3; just double click on the cell...then set the class. It's not letting me set it to my custom cell. It just beeps (IB version 3.1, build 670). I think this is because the column is setup a text field cell, and it will only let

Re: From JavaMail to Cocoa?

2008-08-19 Thread Scott Anguish
On 19-Aug-08, at 4:29 PM, Christophe Bismuth wrote: Dear community, I've developed a Java application using JavaMail library to get my Gmail messages using IMAP. I'd like to switch my code from Java to Cocoa, is there any official Apple Cocoa API for IMAP? Are Mail API published?

Re: Calling an object from a C function

2008-08-19 Thread Kenny Leung
Hi Gilbert. You just have to make sure that your C function is in a .m file (not a .c file) and have the proper header included. Then you just call the method. -Kenny On Aug 19, 2008, at 2:53 PM, Gilbert Mackall wrote: I have a C function from which I would like to call a method. I

Re: Calling an object from a C function

2008-08-19 Thread David Duncan
On Aug 19, 2008, at 2:53 PM, Gilbert Mackall wrote: I have a C function from which I would like to call a method. I can't find any documents the cover how to do this. You call it just like you call any other method. Your C function will need to be compiled with the Obj-C compiler however.

Re: IKImageBrowser drag reordering question/problem

2008-08-19 Thread thomas goossens
Sorry, mail trashed the content of my email. re-sending it. Hi c. When using IKImageBrowserPathRepresentationType or IKImageBrowserNSURLRepresentationType, ImageKit automatically fill the pasteboard for you for convenience when you start a drag. If you use another representation you will

Re: Calling an object from a C function

2008-08-19 Thread Charlie Dickman
What is the syntax? For example, how do I invoke the method - (int) myMethod: (int) int; In object myObject from within a C (not Objective C) function and make use of the result? In Objective C I would invoke [myObject myMethod: myInt]; Even better, how do I invoke - (myObject) myMethod:

Re: Calling an object from a C function

2008-08-19 Thread David Duncan
On Aug 19, 2008, at 4:28 PM, Charlie Dickman wrote: from within a C (not Objective C) function and make use of the result? In Objective C I would invoke [myObject myMethod: myInt]; You invoke it exactly the same way. There is no difference. But you need to compile as Obj-C. int foo(id

Re: Calling an object from a C function

2008-08-19 Thread Kenny Leung
Example: void cFunction(MyObject *myObject) { int myInt; int result; myInt = initializeMyInt(); result = [myObject myMethod:myInt]; printf(result:%i, result); } On Aug 19, 2008, at 4:28 PM, Charlie Dickman wrote: What is the syntax? For example, how do I invoke the method

Re: Calling an object from a C function

2008-08-19 Thread Kiel Gillard
Hi Charlie, The format is like any normal C function. int MyStaticCFunction(int someArg) { //invoke myMethod and return the int the myMethod returns return [objcObject myMethod:someArg]; } You wrote: What is the syntax? For example, how do I invoke the method - (int) myMethod: (int)

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Corbin Dunn
On Aug 19, 2008, at 3:47 PM, Dave Dribin wrote: On Aug 19, 2008, at 5:19 PM, Corbin Dunn wrote: You can in IB3; just double click on the cell...then set the class. It's not letting me set it to my custom cell. It just beeps (IB version 3.1, build 670). I think this is because the column

Re: Calling an object from a C function

2008-08-19 Thread Charlie Dickman
Thanks to all who responded. I must have had a mental block against this. Now, how do I define things like 'self' and 'super' to a C program? On Aug 19, 2008, at 7:38 PM, David Duncan wrote: On Aug 19, 2008, at 4:28 PM, Charlie Dickman wrote: from within a C (not Objective C) function and

passing an object between views

2008-08-19 Thread John Greene
Hello, Hopefully this is a generic enough question that it applies to general Cocoa development: How do I pass an object between views? That is: I have an array of objects that I've built using NSXMLParser, and that populates a table, and clicking on a cell changes my view to another table with

Re: Calling an object from a C function

2008-08-19 Thread Charles Steinman
--- On Tue, 8/19/08, Charlie Dickman [EMAIL PROTECTED] wrote: Now, how do I define things like 'self' and 'super' to a C program? You mean outside of an object? You don't. What would it even mean? There's no concept of selfness in a function. If you want there to be a self, you should create

Re: passing an object between views

2008-08-19 Thread j o a r
On Aug 19, 2008, at 5:31 PM, John Greene wrote: Hopefully this is a generic enough question that it applies to general Cocoa development: How do I pass an object between views? That is: I have an array of objects that I've built using NSXMLParser, and that populates a table, and clicking on

Re: Calling an object from a C function

2008-08-19 Thread mm w
hi charlie give your code or something clearer what are you trying to do? a C object runtime? or a wrapper obj-c to C? (kidding) maybe you could have the right answers, when I read you, my feelings is that you don't go in the right direction On Tue, Aug 19, 2008 at 5:06 PM, Charlie Dickman

Re: passing an object between views

2008-08-19 Thread Graham Cox
On 20 Aug 2008, at 10:31 am, John Greene wrote: I had originally thought that I could just write a method, setTableData in the secondary controller, that takes an object as an argument, and then use that object to build the secondary table. This is apparently forbidden by the language, so

This document's file has been changed by another application?

2008-08-19 Thread Chris Idou
I've got a document based app where the document is actually a directory. Every time I save except the first time I get the above error whether or not things have changed, and even if the directory timestamp is unchanged. Under what circumstances does the above message occur and how do I avoid

Re: Deploying project as backward compatible

2008-08-19 Thread Shawn Erickson
On Mon, Aug 18, 2008 at 11:39 PM, [EMAIL PROTECTED] wrote: Hi all, I'm using xcode 3.1. I deployed my project by changing the build configuration to Release. Now this application is working on Leopard. When I try to open the application in Tiger by double clicking it, the application icon

Re: This document's file has been changed by another application?

2008-08-19 Thread I. Savant
I've got a document based app where the document is actually a directory. Every time I save except the first time I get the above error whether or not things have changed, and even if the directory timestamp is unchanged. Under what circumstances does the above message occur and how do I

Re: How to enumerate directory contents?

2008-08-19 Thread Shawn Erickson
On Sun, Aug 17, 2008 at 8:39 AM, Nicolas Goles [EMAIL PROTECTED] wrote: Could anyone help me a bit with this ? Type the following in google... enumerate directory contents site:developer.apple.com -Shawn ___ Cocoa-dev mailing list

AUTO: Carlos Bermudez is out of the office. (returning 08/25/2008)

2008-08-19 Thread Carlos Bermudez
I am out of the office until 08/25/2008. I will respond to your message when I return. If you have L3 questions please contact Omar Perez or my manager Clifford Meyers Note: This is an automated response to your message Cocoa-dev Digest, Vol 5, Issue 1484 sent on 8/19/08 5:50:50 PM. This is

Re: This document's file has been changed by another application?

2008-08-19 Thread Rob Keniger
On 20/08/2008, at 11:36 AM, Chris Idou wrote: I've got a document based app where the document is actually a directory. Every time I save except the first time I get the above error whether or not things have changed, and even if the directory timestamp is unchanged. Under what

Re: This document's file has been changed by another application?

2008-08-19 Thread Chris Idou
Not sure exactly, but here's a thought: Are you deleting and re- creating the directory each time you save? No. How are you creating the folder? Are you using the NSDocument - fileWrapperOfType:error: method? The directory is pre-existing in this case. I'm not calling that method.

Re: Best Way to Handle Properties?

2008-08-19 Thread Chris Hanson
On Aug 19, 2008, at 10:02 AM, Dave wrote: I'm new to Cocoa and a little confused about the best way to handle the following: I'm converting a C based application to Object-C/Cocoa. One of the objects is used to hold properties which are loaded from a data file. I have created an object

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 7:03 PM, Corbin Dunn wrote: It's not letting me set it to my custom cell. It just beeps (IB version 3.1, build 670). I think this is because the column is setup a text field cell, and it will only let me set the class to an NSTextFieldCell subclass. There's no plain

Re: NSTableColumn not usable with binder of class NSTextValueBinder?

2008-08-19 Thread Dave Dribin
On Aug 19, 2008, at 5:47 PM, Dave Dribin wrote: Again, what's strange is if I change my cell's superclass to be NSTextFieldCell, this bind: call does not give an error and it all works. I also tried subclassing NSActionCell, and that works, too. Is my cell not implementing some method

Re: Best Way to Handle Properties?

2008-08-19 Thread Ken Thomases
In addition to what others have said... On Aug 19, 2008, at 12:02 PM, Dave wrote: [myPersonDetails setFirstName:[[NSString alloc] initWithCharacters: myBufferPtr length: myStringSize]]; This makes memory management awkward. This code is creating an object using alloc, so it's

Core Data Question 1

2008-08-19 Thread R T
I have a Core Data Document-based Application.a document window with a tableview, a text view and a button. When the button is selected, a number is read from the text field and that many objects are programatically added to the tableview. Then a sheet is opened. The tableview presents

Application crashing ( Maybe I'm over releasing object? )

2008-08-19 Thread Nicolas Goles
Hey guys , I am writing an application to read/write tags to mp3 files... the thing is working out pretty nice , ( my application is able to get a directory input and scan the mp3 files and print the tags in the console ). The problem is that after printing my tags the app crashes and I get an

Re: Application crashing ( Maybe I'm over releasing object? )

2008-08-19 Thread Graham Cox
On 20 Aug 2008, at 2:40 pm, Nicolas Goles wrote: Track *newTrack = [[Track alloc] init]; [albumsLibrary addTrackToLibrary:newTrack withPath:fullPath]; I didn't spot anything immediately obvious, but what's this doing? You alloc/init an object and DON'T

Re: This document's file has been changed by another application?

2008-08-19 Thread chaitanya pandit
Are you actually saving the contents of the document to a file inside the package? Try to get the document's fileURL and check if it is the same for the first and subsequent save operations, that might give a hint. The problem might also occur if you arbitrarily tweak the fileUrl. -Chaitanya