Weird CG Error when closing window...

2010-04-16 Thread Jean-Nicolas Jolivet
Each time I close a window, I get the following error: : kCGErrorInvalidConnection: CGSGetSurfaceBounds: Invalid connection It shows up once or twice, usually twice... I have no idea what could be causing it, I tried setting a breakpoint at CGErrorBreakpoint as suggested but the stack trace was

Re: NSTask dilema...

2010-03-31 Thread Jean-Nicolas Jolivet
at my progress label was not being updated... so I assumed that my UI was locked up... it turns out using [progressLabel display]; did the trick (I guess it's forcing it to re-draw?) Thanks to everyone for the quick replies! Jean-Nicolas Jolivet On 2010-03-31, at 2:21 PM, Jean-Nicolas Jol

NSTask dilema...

2010-03-31 Thread Jean-Nicolas Jolivet
I have to run a bunch of NSTasks and I'm not sure to proceed considering I want to be able to update the UI when a task is completed, and I want the process to be as fast as possible (obviously)... So far I tried a couple of ideas but they all had their problems: - I tried launching the tasks o

Re: Random "Controller cannot be nil" crash

2010-03-30 Thread Jean-Nicolas Jolivet
its default position... moving that call to awakeFromNib appears to have fixed the issue! Jean-Nicolas Jolivet On 2010-03-30, at 2:31 PM, Jean-Nicolas Jolivet wrote: > I'm having a very frustrating issue that I can't seem to be able to > pinpoint... > > When I run my app,

Random "Controller cannot be nil" crash

2010-03-30 Thread Jean-Nicolas Jolivet
the same in both occasions... I can post my singleton code if it would help but it's a singleton template that I use all the time without any problems If anyone has a clue as to what could be happening, it would be really appreciated as I really have no idea what to try next... Jean-Nicol

When is an NSTextField editor created?

2009-07-26 Thread Jean-Nicolas Jolivet
try to override is either too soon (i.e. currentEditor is still null) or too late (i.e. the cursor changes color when the user starts typing)... Am I missing something or is it really that complex to change an NSTextField's caret color? Any help would be appre

CoreData many-to-many Relationship Question

2009-07-26 Thread Jean-Nicolas Jolivet
veManagersObject and removeEmployeesObject... can I only delete one side of the relationship or do I have to delete both? Hopefully my question is clear, if not let me know I'll try to explain it better... Jean-Nicolas Jolivet ___ Cocoa-dev mailing list (

Getting a frame number in a QTMovieView/QTMovie

2009-06-05 Thread Jean-Nicolas Jolivet
a video is just as hard... I'm guessing there's a way considering that QuickTime Player does it (if you open a video, click on the timestamp in the lower left corner and change it to Frame Number), but I'm afraid it's not possible using QTKit... anyone can confirm/he

Re: CoreData and NSUndoManager/Undo Grouping...

2009-03-04 Thread Jean-Nicolas Jolivet
self hideView:sender]; } So basically, I'm setting the action name BEFORE ending undo grouping... and it's working just fine... I have no idea why but... it works now... On 4-Mar-09, at 1:41 AM, Jean-Nicolas Jolivet wrote: I'm trying to set up undo grouping properly for my editing

CoreData and NSUndoManager/Undo Grouping...

2009-03-03 Thread Jean-Nicolas Jolivet
he "Undo" from the Edit menu is calling a different Undo Manager but I'm not sure why this would happen since my EditView/EditViewController doesn't have one (well...not that I know off anyway??) It's also possible that I'm completely missing the point with NSU

NSTextField's subclass...

2009-02-14 Thread Jean-Nicolas Jolivet
the text field is edited? I subclassed NSTextFieldCell and I'm trying to look at a method to override that could help me (I would like to avoid having to draw the whole cell manually when all I need is to offset the editor by a couple of pixels) Anyone has an idea? Jea

Re: Cursor color in NSTextField?

2009-02-13 Thread Jean-Nicolas Jolivet
Hmmm to avoid any confusion, what I want to change is the *caret* color (the insertion point...) not the mouse cursor! I realized later how it might have sound confusing... On 13-Feb-09, at 8:16 PM, Jean-Nicolas Jolivet wrote: I was wondering if it was possible to change the cursor

Cursor color in NSTextField?

2009-02-13 Thread Jean-Nicolas Jolivet
hod... Jean-Nicolas Jolivet silver...@videotron.ca http://www.silverscripting.com ___ 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 coco

Re: NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
, at 6:52 PM, Jerry Krinock wrote: On 2009 Feb 13, at 13:34, Jean-Nicolas Jolivet wrote: If I disable the item's re-sizing, the behavior is less apparent... it's still a little odd (sometimes the items are attached to the right side of the collection viewthen all of a sudd

Re: NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
ever, obviously, my items don't get re-sized... which isn't really how I need it to behave... On 13-Feb-09, at 4:24 PM, Markus Spoettl wrote: On Feb 13, 2009, at 10:02 PM, Jean-Nicolas Jolivet wrote: Well, after some tests, it appears I am getting the same result even without u

Re: NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
Well, after some tests, it appears I am getting the same result even without using an NSSplitView... so apparently the problem is elsewhere... I'm running out of ideas here hehe... On 13-Feb-09, at 3:18 PM, Jean-Nicolas Jolivet wrote: I managed to capture it on video... Here it is:

Re: NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
13-Feb-09, at 1:09 PM, Jean-Nicolas Jolivet wrote: I'm having weird problems with a CollectionView inside an NSSplitView... it looks fine but as soon as I re-size (either by dragging the split view's divider or by re-sizing the window) the CollectionView's animation is flicke

NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
btle... it really makes the app unusable... is this a known bug? Jean-Nicolas Jolivet silver...@videotron.ca http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-04 Thread Jean-Nicolas Jolivet
re absolutely right about the terminology; Implemented should've been used and not override!) On 3-Feb-09, at 6:59 PM, Andy Lee wrote: On Feb 3, 2009, at 3:06 PM, Jean-Nicolas Jolivet wrote: I tried overriding the applicationShouldOpenUntitledFile in my App delegate P.S. This may sou

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Jean-Nicolas Jolivet
yeah I just wrote it from memory in my email, in my app, I actually copied the method declaration from the docs... (I'm 100% sure it's not a typo/delegate connection problem) On 3-Feb-09, at 3:20 PM, Andy Lee wrote: On Feb 3, 2009, at 3:06 PM, Jean-Nicolas Jolivet wrot

applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Jean-Nicolas Jolivet
f so, is there any way to achieve the same result? I know my app delegate is working because I'm overriding other delegate methods in there and they work without a hitch, and I'm sure there's no typo in the method name (I copy/pasted it) Any help would be appreciated! Je

Re: CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
s On 30/1/09, Jean-Nicolas Jolivet wrote: Using that accessor I know I can do the following: [aDepartment addEmployeesObject:anEmployee]; How would I do that using KVC ? [[aDepartment primitiveValueForKey: @"employees"] addObject: anEmployee]; might work. I think the prefer

Re: CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
etValueForKey:@"employees"]; [employees addObject:newEmployee]; [employees removeObject:firedEmployee]; On 30-Jan-09, at 4:30 PM, mmalc Crawford wrote: On Jan 30, 2009, at 1:26 PM, Jean-Nicolas Jolivet wrote: What I wanted to know, more or less, is (following my previous Employee/Departmen

Re: CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
so. But don't take my word for it. I look forward to replies from people who understand your question more clearly. Cheers, Steve Jean-Nicolas Jolivet silver...@videotron.ca http://www.silverscripting.com ___ Cocoa-dev mailing list

CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
t category with a bunch of accessors etc.. to suppress compiler warning but I was wondering about the KVC get/set as I am using them too Thank you! Jean-Nicolas Jolivet silver...@videotron.ca http://www.silverscripting.com ___ Cocoa-dev m

Re: Detecting mouseover in an NSActionCell subclass

2009-01-12 Thread Jean-Nicolas Jolivet
Thanks! I've been looking for an example just like that for a while now! :) On 12-Jan-09, at 3:22 PM, Randall Meadows wrote: On Jan 12, 2009, at 12:56 PM, Jean-Nicolas Jolivet wrote: I've got it all working at this point, the 2 buttons on the right are just NSImages and

Detecting mouseover in an NSActionCell subclass

2009-01-12 Thread Jean-Nicolas Jolivet
Tracking etc... but it appears they are all only called when the left mouse button is down, if it isn't they never seem to be called... Any help or ideas would be appreciated! Jean-Nicolas Jolivet silver...@videotron.ca http://www.silverscripting.com ___

Re: NSData downloaded over socket is bigger than it should be...

2008-12-19 Thread Jean-Nicolas Jolivet
Yup, someone already replied in private with that exact quote! Thanks a lot, this was exactly my problem! :) On 19-Dec-08, at 3:27 PM, Andrew Farmer wrote: On 19 Dec 08, at 10:24, Jean-Nicolas Jolivet wrote: Well after comparing the data that I am receiving with the data that I SHOULD

Re: NSData downloaded over socket is bigger than it should be...

2008-12-19 Thread Jean-Nicolas Jolivet
ng AsyncSocket's "readToData" function... so I don't have much control over that... On 19-Dec-08, at 1:34 PM, glenn andreas wrote: On Dec 19, 2008, at 12:24 PM, Jean-Nicolas Jolivet wrote: Well after comparing the data that I am receiving with the data that I SHOULD be

Re: NSData downloaded over socket is bigger than it should be...

2008-12-19 Thread Jean-Nicolas Jolivet
;m out of ideas here really! On 19-Dec-08, at 12:20 PM, Jean-Nicolas Jolivet wrote: I would love to give you an answer! The problem is that every newsreader out there that download binary files automatically decode and join the parts... I can't download just one part to test

Re: NSData downloaded over socket is bigger than it should be...

2008-12-19 Thread Jean-Nicolas Jolivet
t might be able to download parts of multiparts email attachment WITHOUT joining the parts once its done but ... well it's just not that easy to find unfortunately! On 19-Dec-08, at 12:07 PM, Michael Ash wrote: On Fri, Dec 19, 2008 at 11:43 AM, Jean-Nicolas Jolivet wrote: Well a

Re: NSData downloaded over socket is bigger than it should be...

2008-12-19 Thread Jean-Nicolas Jolivet
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: http://lists.apple.com/mailman/options/cocoa-dev/silvertab%40videotron.ca This email sent to silver...@videotr

Re: NSData downloaded over socket is bigger than it should be...

2008-12-18 Thread Jean-Nicolas Jolivet
all the segments of a file have been downloaded... but most segments have extra bytes in them... And to make it workse, sometimes (usually when I grab stuff like images or smaller stuff like that which consist of only 1 segment) then they end up just fine... the extra bytes are only present

NSData downloaded over socket is bigger than it should be...

2008-12-18 Thread Jean-Nicolas Jolivet
h expected size (384000) Part 2.rar: Decoded size (384013) does not match expected size (384000) ... Now as I said, I know this is really vague, but did anyone experience something similar with AsyncSocket or any other sockets? or NSData altogether?? Jean-Nicolas Jolivet silver...@vi

Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
d the data in my model, sort my NSMutableArray and then fire didChangeValueForKey:myMutableArrayto update the ArrayController's content.. this way my mutable array is sorted too... and I just disabled re- ordering in IB on the table.... Jean-Nicolas Jolivet silver...@videotr

Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
escriptors" in IB for my 2 columns, but I can't figure out how to sort my table view programatically... (Also, while I'm on the subject, does sorting the NSArrayController's arrangedObjects also sorts the NSMutableArray to which my NSArrayController is bo

Re: NSBitmapImageRep orientation?

2008-12-12 Thread Jean-Nicolas Jolivet
Thanks a lot for the clarification!! Oh BTW, just for giggles: If the image was rotated before, I'm pretty sure it was with Windows Picture & Fax Viewer! :) Jean-Nicolas Jolivet On 12-Dec-08, at 6:43 PM, Ken Ferry wrote: On Fri, Dec 12, 2008 at 2:32 PM, Jean-Nicolas Jolivet w

NSBitmapImageRep orientation?

2008-12-12 Thread Jean-Nicolas Jolivet
re any reliable way I can rotate my images to the correct orientation ?? Jean-Nicolas Jolivet silver...@videotron.ca http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

NSTextField + Drag'n'Drop

2008-12-09 Thread Jean-Nicolas Jolivet
oing with my custom NSViews?) Any information would be appreciated! Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: "Live" image preview, huge memory usage...

2008-12-04 Thread Jean-Nicolas Jolivet
ing a bunch of image I don't have much choice but to use threading/NSOperation I doubt there will be a work around for that though!... Perhaps a different way of applying brightness/contrast modifications (without using CIImage)?? Jean-Nicolas Jolivet On 4-Dec-08, at 11:45 AM, Erik

Re: "Live" image preview, huge memory usage...

2008-12-04 Thread Jean-Nicolas Jolivet
on as I do it in a thread, the leak re- appears... On 4-Dec-08, at 3:26 AM, Jean-Nicolas Jolivet wrote: Just wanted to say that I got it to work finally! :) basically I thought the last part of your code, where you render the CGImage in the current context was a necessary part of th

Re: "Live" image preview, huge memory usage...

2008-12-04 Thread Jean-Nicolas Jolivet
ec-08, at 8:27 PM, Rob Keniger wrote: On 03/12/2008, at 6:22 PM, Jean-Nicolas Jolivet wrote: Quick question (2 actually), right now Im drawing my CIImage in a custom view... would drawing the CIImage in my view's drawRect method achieve the same (leak-free) result as your piece of cod

Re: "Live" image preview, huge memory usage...

2008-12-03 Thread Jean-Nicolas Jolivet
to do it with the code you posted...) J-N On 3-Dec-08, at 8:27 PM, Rob Keniger wrote: On 03/12/2008, at 6:22 PM, Jean-Nicolas Jolivet wrote: Quick question (2 actually), right now Im drawing my CIImage in a custom view... would drawing the CIImage in my view's drawRect method achiev

Re: Binding/KVO question

2008-12-03 Thread Jean-Nicolas Jolivet
ler) Not sure why... there's no specific error messages (just "Syntax Error before AppController" and "Syntax Error before CustomView" On 3-Dec-08, at 5:26 PM, Keary Suska wrote: On Dec 3, 2008, at 2:35 PM, Jean-Nicolas Jolivet wrote: In the same NIB file I have

Binding/KVO question

2008-12-03 Thread Jean-Nicolas Jolivet
CustomView's code I would need an instance to my AppController, which I haven't! (both MySecondWindow and MyCustomView are outlets of my AppControllers...) I'm sure there is an obvious way of doing it but right now I just can't see it... Any help would be appr

Re: "Live" image preview, huge memory usage...

2008-12-03 Thread Jean-Nicolas Jolivet
draw those CIImage offscreen.. (only for the Color Control Filter actually)... I assume I have to live with the leak?? J-N On 3-Dec-08, at 3:10 AM, Rob Keniger wrote: On 03/12/2008, at 5:34 PM, Jean-Nicolas Jolivet wrote: Hmm I just found an older post that mentions a big memory leak pr

Re: "Live" image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
Hmm I just found an older post that mentions a big memory leak problem when drawing CIImage offscreen I guess I'll have to do this differently... On 3-Dec-08, at 2:20 AM, Jean-Nicolas Jolivet wrote: hmmm while playing with Instruments and Activity Monitor I realized two t

Re: "Live" image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
t be right... On 3-Dec-08, at 2:02 AM, Jean-Nicolas Jolivet wrote: mmm thanks for the info, I'm trying right now to draw directly in a custom view... unfortunately I still get the same result... on average each time I regenerate the preview the memory usage in Activity monitor goes up

Re: "Live" image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
te it climbs pretty quickly... Once again, MallocDebug doesn't show any leaks, neither does Instruments... not sure what I am doing wrong... On 3-Dec-08, at 1:33 AM, Rob Keniger wrote: On 03/12/2008, at 1:53 PM, Jean-Nicolas Jolivet wrote: since I already have a bitmapImageRep

Re: "Live" image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
8, at 7:01 PM, Jean-Nicolas Jolivet wrote: Well, right now I am using CoreImage (CIImage and CIImageFilters) to do the brightness/contrast adjustment... The problem is, I still have to put the result in my NSImageView after that (which is, I assume, what takes up all this ram??) On 2-Dec-0

Re: "Live" image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
Dec 2, 2008, at 5:29 PM, Jean-Nicolas Jolivet wrote: (This is linked to my last post on the list, however it's a completely different topic so I posted it separately) To sum it up, my app allows to do some basic modifications to an image (brightness/contrast/saturation among others)

"Live" image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
in an NSOperation.. I'm mentioning it since I know that threads usually have their own autorelease pool... Im not sure how it is with NSOperations...) Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list (C

Is NSOperation right for this job?

2008-12-02 Thread Jean-Nicolas Jolivet
ds on it (but also takes time since the re- sizing is animated) and I have to keep in mind that the user should be able to mess with the size/brightness etc sliders even while those operations are running... Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscriptin

Re: Custom NSSlider?

2008-12-01 Thread Jean-Nicolas Jolivet
huh, nevermind, it was actually a stupid mistake on my end... I connected the slider to the sliderEnded action instead of sliderMoved (it's weird Im sure I double-checked...) anyway It's working now! thanks a lot J-N On 1-Dec-08, at 10:06 PM, Jean-Nicolas Jolivet wrote:

Re: Custom NSSlider?

2008-12-01 Thread Jean-Nicolas Jolivet
Yup, still getting them, I also tried to move the 3 lines at the beginning of the sliderMoved method, still no luck...apparently it's not the binding thats keeping it from working I guess? J-N On 1-Dec-08, at 10:00 PM, James Walker wrote: Jean-Nicolas Jolivet wrote: Thanks for the in

Re: Custom NSSlider?

2008-12-01 Thread Jean-Nicolas Jolivet
et a ton of "Done tracking" messages in the console, and my label is never updated.. which is... well, almost the opposite of what should happen J-N On 1-Dec-08, at 7:50 PM, James Walker wrote: Jean-Nicolas Jolivet wrote: I was wondering if its possible to have an NSSlider s

Custom NSSlider?

2008-12-01 Thread Jean-Nicolas Jolivet
nuous, but I would like to provide a continuous update of the UI (i.e. the label that displays the slider value)... I'm guessing I will probably have to subclass but even then I'm not really sure where to start?? Any info would be appreciated... Jean-Nicolas Jolivet [E

Re: Quick Look with native types?

2008-11-28 Thread Jean-Nicolas Jolivet
t how to integrate quick look in my app I'll stick to my custom preview class! :) On 27-Nov-08, at 8:29 PM, Jean-Nicolas Jolivet wrote: I might be missing something obvious here but I'm reading the Quick Look companion guide and I can't seem to find any info about imple

Re: Quick Look with native types?

2008-11-27 Thread Jean-Nicolas Jolivet
lready on the file system... On 27-Nov-08, at 11:02 PM, Jean-Nicolas Jolivet wrote: That's not really what I'm getting from Quick Look's programming guide... in the very first paragraph it says: "For documents of common content types—notably HTML, RTF, plain text, TI

Re: Quick Look with native types?

2008-11-27 Thread Jean-Nicolas Jolivet
quicklook with native types is more complex than just calling a method or two.. I will use my own class instead... I guess I didn't formulated in a clear way... On 27-Nov-08, at 10:32 PM, Rob Keniger wrote: On 28/11/2008, at 11:29 AM, Jean-Nicolas Jolivet wrote: I might be missin

Quick Look with native types?

2008-11-27 Thread Jean-Nicolas Jolivet
need to do that for native types too? It seems so complex I might just end up writing my own preview class and forget quick look.... Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Figure out the size of an NSAttributedString

2008-11-26 Thread Jean-Nicolas Jolivet
) Thanks again... J-N On 26-Nov-08, at 6:14 PM, Jean-Nicolas Jolivet wrote: I know this might seem like a weird idea, but I need to figure out the size (width and height) of an NSAttributedString that I am drawing... basically I need to know it because I am drawing it inside a larger i

Figure out the size of an NSAttributedString

2008-11-26 Thread Jean-Nicolas Jolivet
ly need to?) Any ideas are welcomed! Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ 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

Re: NSTableView Drag-Drop re-ordering...

2008-11-26 Thread Jean-Nicolas Jolivet
Got it! thanks a lot for the code! Sorry for not spotting that one earlier... I thought WithAndWithoutBinding was basically the same example only more recent...! J-N On 26-Nov-08, at 4:59 AM, mmalcolm crawford wrote: On Nov 26, 2008, at 1:42 AM, Jean-Nicolas Jolivet wrote: mmm

Re: NSTableView Drag-Drop re-ordering...

2008-11-26 Thread Jean-Nicolas Jolivet
ot;re-ordering" they mean column sorting, which I can do just fine... but definitely not drag and drop re-ordering.. Jean-Nicolas Jolivet On 26-Nov-08, at 4:36 AM, mmalcolm crawford wrote: On Nov 26, 2008, at 12:37 AM, Jean-Nicolas Jolivet wrote: Well it depends on which example yo

Re: NSTableView Drag-Drop re-ordering...

2008-11-26 Thread Jean-Nicolas Jolivet
ta representing the items/ indexes being dragged 4] Check for a valid drop with "tableView:validateDrop:proposedRow:proposedDropOperation:" 5] Finally set the new indexes for the dragged items in "tableView:acceptDrop:row:dropOperation:" HTH, Chaitanya On 26-Nov-08, at 1

Re: NSTableView Drag-Drop re-ordering...

2008-11-26 Thread Jean-Nicolas Jolivet
emed to work... Anyway... someone did reply to my email address saying he had a hard time implementing it, but he did provide some code samples/concrete info so I'll try to work from there... Thanks for your time On 26-Nov-08, at 3:29 AM, mmalcolm crawford wrote: On Nov 26,

Re: NSTableView Drag-Drop re-ordering...

2008-11-26 Thread Jean-Nicolas Jolivet
r the obvious key words (NSTableView drag drop order, NSTableView re-order etc etc..) But thanks anyway... On 26-Nov-08, at 2:58 AM, mmalcolm crawford wrote: On Nov 25, 2008, at 11:26 PM, Jean-Nicolas Jolivet wrote: I'm pretty sure this has been covered before, however I can't find an

NSTableView Drag-Drop re-ordering...

2008-11-25 Thread Jean-Nicolas Jolivet
d from the finder)... that part works well, however, now I would like to implement drag/drop re-ordering of rows... Any good examples on how to do that? Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list

Supporting Tiger, using leopard functions when possible?

2008-11-25 Thread Jean-Nicolas Jolivet
ngs but I got a user saying it just wont open on Tiger (I made sure all I got was 2 warnings... and in both cases I test for respondsToSelector before using them) Is there a Target settings I need to change or something for my app to run on Tiger?? Jean-Nicolas Jolivet [E

Re: Correctly drawing a custom view...

2008-11-25 Thread Jean-Nicolas Jolivet
don't care about this, just always use [self bounds]. Read the docs. -- I.S. Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Correctly drawing a custom view...

2008-11-25 Thread Jean-Nicolas Jolivet
e gradient and the result is definitely weird... I was wondering if there is a way to prevent this from happening? Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Multiple views in a nib file?

2008-11-24 Thread Jean-Nicolas Jolivet
to go... I'll let you know if I hit a dead end! Again, thank you! J-N On 24-Nov-08, at 5:38 AM, Graham Cox wrote: On 24 Nov 2008, at 7:56 pm, Jean-Nicolas Jolivet wrote: mm interesting reading!... I'm trying to see how I could implement this in my case...I used the "Tool" ex

Re: Multiple views in a nib file?

2008-11-24 Thread Jean-Nicolas Jolivet
anyway it's almost 4am I'll have to re- read your post tomorrow morning and see how I can make this work for my situation! :) in any case, thanks for the ideas! On 24-Nov-08, at 3:32 AM, Graham Cox wrote: On 24 Nov 2008, at 6:17 pm, Jean-Nicolas Jolivet wrote: What I'm trying

Re: Multiple views in a nib file?

2008-11-23 Thread Jean-Nicolas Jolivet
08, at 2:33 AM, Kyle Sluder wrote: On Mon, Nov 24, 2008 at 2:17 AM, Jean-Nicolas Jolivet <[EMAIL PROTECTED]> wrote: The problem is, I'm not sure how I can store those custom views and associate them with their respective subclasses once they are instantiated. I'm able to do it if

Multiple views in a nib file?

2008-11-23 Thread Jean-Nicolas Jolivet
basically be any of Tool's subclasses Should I just store each custom view in their respective nib files??? Or perhaps I'm just looking at this the wrong way? Any help would be appreciated... Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com _

Re: Automatic file numbering ideas...

2008-11-23 Thread Jean-Nicolas Jolivet
file in such a case. I'm not sure what would be best, frankly. I hope that someone else will chime in with a built-in solution! Best, Andrew On Nov 23, 2008, at 10:49 AM, Jean-Nicolas Jolivet wrote: mmm I guess I'm a little slow today hehe... something like this would p

Re: Automatic file numbering ideas...

2008-11-23 Thread Jean-Nicolas Jolivet
mmm I guess I'm a little slow today hehe... something like this would probably work (pseudo-code): cnt = 1 filename = "Picture " + cnt while(file exist (filename)) cnt ++ On 23-Nov-08, at 1:45 PM, Jean-Nicolas Jolivet wrote: I would love to implement something l

Automatic file numbering ideas...

2008-11-23 Thread Jean-Nicolas Jolivet
7;m fairly good with RegEx so it would be easy to parse filenames for numbers I guess but it seems a little overkill for such a trivial task... (especially since my app wouldn't use Regex for anything else so, I dont want to add a regex framework just for that)... Any ideas would be a

Re: Fastest way to resize an image?

2008-11-22 Thread Jean-Nicolas Jolivet
(fromRect)); NSBitmapImageRep *resultRep = [[NSBitmapImageRep alloc] initWithCGImage:cgImg]; CGImageRelease(cgImg); Hopefully this can help someone with the same problem in the future! Thanks to everyone for the help! :) J-N Jolivet On 20-Nov-08, at 1:30 AM, Jean-Nicolas Jolivet wrote: I have a

Re: Fastest way to resize an image?

2008-11-22 Thread Jean-Nicolas Jolivet
ime it takes by using just an ImageRep...) being able to use drawInRect: fromRect on an ImageRep would save me ton of time and headaches... Jean-Nicolas Jolivet On 22-Nov-08, at 11:59 AM, Heinrich Giesen wrote: Hi, On 20.11.2008, at 09:05, Jean-Nicolas Jolivet wrote: I have a bunch of imag

Re: Fastest way to resize an image?

2008-11-22 Thread Jean-Nicolas Jolivet
pixelsWide], [sourceRep pixelsHigh])]; Just wondering because obviously my custom image class (which is basically just a class holding paths and utility functions) has no draw method... Other than that, I like what I'm seeing! Thanks again! :) Jean-Nicolas Jolivet On 22-Nov-08, at 11:59 AM,

Re: Difference between "Target" and "Executable" ?

2008-11-20 Thread Jean-Nicolas Jolivet
. So does the "Executable" name has any effect on the resulting app's name?? (Sorry if this question has been answered already, I'm still reading the replies!...) On 20-Nov-08, at 7:32 PM, Jean-Nicolas Jolivet wrote: I just renamed my project (according to the instr

Difference between "Target" and "Executable" ?

2008-11-20 Thread Jean-Nicolas Jolivet
difference between "Targets" and "executables" ?? Seems like I am always editing/configuring the Target but never the executable...? What is the purpose of the executable anyway? Jean-Nicolas Jolivet [EMAIL PROTECTED]

Re: NSImageView and releasing it's images...

2008-11-20 Thread Jean-Nicolas Jolivet
do it? Do not pay attention to Top or Activity Monitor when it comes to leak hunting. They can be misleading, because RAM may not be freed immediately for performance reasons. Use Instruments or MallocDebug instead. Nick Zitzmann <http://www.chronosnet.com/> Jean-Nicolas Jolivet [E

Re: NSImageView and releasing it's images...

2008-11-20 Thread Jean-Nicolas Jolivet
hing wrong?? and if not, why is the memory climbing alarmingly fast each time I preview my image and doesn't seem to be getting released?? On 20-Nov-08, at 4:10 PM, Jean-Nicolas Jolivet wrote: I'm using an NSImageView to preview an image result (i.e. you adjust brightness etc.

NSImageView and releasing it's images...

2008-11-20 Thread Jean-Nicolas Jolivet
er way to do it? Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ 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 coco

Re: Forcing toolbar validation...

2008-11-20 Thread Jean-Nicolas Jolivet
On 20-Nov-08, at 1:35 PM, Peter Ammon wrote: On Nov 20, 2008, at 9:26 AM, Jean-Nicolas Jolivet wrote: I have to disable all toolbar items during a long process... I did it basically by overriding - (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem { return !longProcessIsRunning; }

Re: Fastest way to resize an image?

2008-11-20 Thread Jean-Nicolas Jolivet
e is drawn at. If you try to write the NSImage back out as a TIFF, say, then what you've done is modify the DPI. Does setting -setScalesWhenResized: appropriately help in this situation? Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___

Forcing toolbar validation...

2008-11-20 Thread Jean-Nicolas Jolivet
this method should not be invoked directly... therefore, I am wondering if there is a better alternative to force the re-validation of my items?? Should I just ignore the doc since it's working and this is a particular case? Jean-Nicolas Jolivet [EMAIL PROTECTED]

Fastest way to resize an image?

2008-11-19 Thread Jean-Nicolas Jolivet
e process... but is there something faster than NSImage/NSImageRep to work with? Any help/pointers would be appreciated... basically I can already do what I want to do, just looking for the fastest way to do it... Jean-Nicolas Jolivet [EMAIL PROTECTED] http:

Re: Cocoa apps protection software

2008-11-19 Thread Jean-Nicolas Jolivet
otron.ca This email sent to [EMAIL PROTECTED] Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Re: Question about NSThread?

2008-11-19 Thread Jean-Nicolas Jolivet
riable to generate images... I also released and re-created my pool after each image is generated... Basically I get no errors/warning, everything seems to be working... is it really though?? eh... I'm still not sure... Jean-Nicolas Jolivet On 19-Nov-08, at 5:24 PM, Michael Ash wrote: O

Re: Question about NSThread?

2008-11-19 Thread Jean-Nicolas Jolivet
Thanks for all the reply! By digging a little deeper I can see that everything isn't working quite as smoothly as I thought it was...! All the info is quite welcomed! Jean-Nicolas Jolivet On 19-Nov-08, at 3:57 PM, Jean-Nicolas Jolivet wrote: I have an app that generates a bunch of i

Re: Question about NSThread?

2008-11-19 Thread Jean-Nicolas Jolivet
been much more complex than > that? (With NSLocks and whatnot...) Maybe I should just shut up and be > happy that it work, but somehow this doesn't seem right... > > Jean-Nicolas Jolivet > [EMAIL PROTECTED] > http://www.silverscripting.com > >

Question about NSThread?

2008-11-19 Thread Jean-Nicolas Jolivet
wasn't getting updated when the long process was not in a separate thread)... Am I wrong to think that it should've been much more complex than that? (With NSLocks and whatnot...) Maybe I should just shut up and be happy that it work, but somehow this doesn't seem right...

Re: NSArrayController - Remove all objects?

2008-11-18 Thread Jean-Nicolas Jolivet
I was able to get it done using: [self removeObjectsAtArrangedObjectIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [[self arrangedObjects] count])]]; can't believe there isn't a better way to do it?? On 18-Nov-08, at 10:23 PM, Jean-Nicolas Jolivet wrote: I'

NSArrayController - Remove all objects?

2008-11-18 Thread Jean-Nicolas Jolivet
files from an array controlled by an arraycontroller? Or at least a way to access the array from within my custom ArrayController's code?? I tried [self setArrangedObjects:] but the method doesn't exist Jean-Nicolas Jolivet [EMAIL PROTECTED]

Re: Can 2 nib share a same custom class instance?

2008-11-18 Thread Jean-Nicolas Jolivet
troler's action I got a bit mixed up because my windows/controllers are set up in a weird way (I'm using a third party class so I had no other options)... Anyway, I got it working now! Thanks! On 18-Nov-08, at 6:22 PM, Kyle Sluder wrote: On Tue, Nov 18, 2008 at 5:43 PM, Jea

Can 2 nib share a same custom class instance?

2008-11-18 Thread Jean-Nicolas Jolivet
ars twice in the console... Is there a way that both nib files can "share" the same instance of my CustomWindowController??? Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com ___ Cocoa-dev mailing list (Cocoa-dev@lis

  1   2   >