Weird CG Error when closing window...

2010-04-16 Thread Jean-Nicolas Jolivet
Each time I close a window, I get the following error: 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

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

Re: NSTask dilema...

2010-03-31 Thread Jean-Nicolas Jolivet
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 Jolivet wrote

Random Controller cannot be nil crash

2010-03-30 Thread Jean-Nicolas Jolivet
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-Nicolas Jolivet ___ Cocoa-dev mailing

Re: Random Controller cannot be nil crash

2010-03-30 Thread Jean-Nicolas Jolivet
... 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, I randomly get a crash on startup

CoreData many-to-many Relationship Question

2009-07-26 Thread Jean-Nicolas Jolivet
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 (Cocoa-dev@lists.apple.com

When is an NSTextField editor created?

2009-07-26 Thread Jean-Nicolas Jolivet
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 appreciatede! Jean-Nicolas Jolivet

Getting a frame number in a QTMovieView/QTMovie

2009-06-05 Thread Jean-Nicolas Jolivet
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/help ? Jean-Nicolas Jolivet silver

Re: CoreData and NSUndoManager/Undo Grouping...

2009-03-04 Thread Jean-Nicolas Jolivet
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 dialog (i.e. when a user edits

CoreData and NSUndoManager/Undo Grouping...

2009-03-03 Thread Jean-Nicolas Jolivet
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 NSUndoManagers/NSManageObjectContext etc... Any help/suggestion would be appreciated... Jean-Nicolas Jolivet

NSTextField's subclass...

2009-02-14 Thread Jean-Nicolas Jolivet
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? Jean-Nicolas Jolivet silver...@videotron.ca http

NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
... 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 comments to the list. Contact the moderators

Re: NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
On 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 flickering a LOT

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

Re: NSCollectionView inside an NSSplitView?

2009-02-13 Thread Jean-Nicolas Jolivet
, 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 using an NSSplitView... so

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 sudden they go

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

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-04 Thread Jean-Nicolas Jolivet
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 sound nitpicky, but I suspect you

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 wrote: I tried

CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
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 mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
people who understand your question more clearly. Cheers, Steve 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

Re: CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
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/Department example) can I add employees

Detecting mouseover in an NSActionCell subclass

2009-01-12 Thread Jean-Nicolas Jolivet
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 ___ Cocoa-dev mailing list (Cocoa-dev

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 I'm using

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

2008-12-19 Thread Jean-Nicolas Jolivet
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...@videotron.ca Jean-Nicolas Jolivet silver

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

2008-12-19 Thread Jean-Nicolas Jolivet
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 silver...@videotron.ca wrote

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

2008-12-19 Thread Jean-Nicolas Jolivet
! 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 it against the part that my app downloaded

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

2008-12-19 Thread Jean-Nicolas Jolivet
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 receiving, it turns out that dots (yes, the dot

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

2008-12-18 Thread Jean-Nicolas Jolivet
(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...@videotron.ca http

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

2008-12-18 Thread Jean-Nicolas Jolivet
, 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 with bigger attachment (of 1mb+) and especially with multiparts attachments... Jean-Nicolas Jolivet On 19-Dec-08

Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
programatically... (Also, while I'm on the subject, does sorting the NSArrayController's arrangedObjects also sorts the NSMutableArray to which my NSArrayController is bound to??) Thanks, Jean-Nicolas Jolivet silver...@videotron.ca http://www.silverscripting.com

Re: Sorting a bound NSTableView programatically

2008-12-17 Thread Jean-Nicolas Jolivet
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...@videotron.ca http

NSBitmapImageRep orientation?

2008-12-12 Thread Jean-Nicolas Jolivet
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 moderator comments to the list. Contact

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 silver

NSTextField + Drag'n'Drop

2008-12-09 Thread Jean-Nicolas Jolivet
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 to the list. Contact the moderators

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

2008-12-04 Thread Jean-Nicolas Jolivet
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 the trick, I

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

2008-12-04 Thread Jean-Nicolas Jolivet
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 Buck wrote

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

2008-12-03 Thread Jean-Nicolas Jolivet
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 problem

Binding/KVO question

2008-12-03 Thread Jean-Nicolas Jolivet
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 appreciated... Jean-Nicolas Jolivet [EMAIL PROTECTED] http

Re: Binding/KVO question

2008-12-03 Thread Jean-Nicolas Jolivet
) 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 a second window with a custom view

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

2008-12-03 Thread Jean-Nicolas Jolivet
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 achieve the same

Is NSOperation right for this job?

2008-12-02 Thread Jean-Nicolas Jolivet
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.silverscripting.com

Live image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
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 (Cocoa-dev@lists.apple.com) Please do not post admin requests

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

2008-12-02 Thread Jean-Nicolas Jolivet
: On 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) those

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

2008-12-02 Thread Jean-Nicolas Jolivet
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-08, at 6:38

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

2008-12-02 Thread Jean-Nicolas Jolivet
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 I figured

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

2008-12-02 Thread Jean-Nicolas Jolivet
... 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 by approx. 10mb

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 things

Custom NSSlider?

2008-12-01 Thread Jean-Nicolas Jolivet
, 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 [EMAIL PROTECTED] http

Re: Custom NSSlider?

2008-12-01 Thread Jean-Nicolas Jolivet
, 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 send an action after the user finished dragging, while still

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 info, I

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: Yup, still

Re: Quick Look with native types?

2008-11-28 Thread Jean-Nicolas Jolivet
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 implementing QuickLook

Quick Look with native types?

2008-11-27 Thread Jean-Nicolas Jolivet
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.apple.com

Re: Quick Look with native types?

2008-11-27 Thread Jean-Nicolas Jolivet
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 missing something obvious here but I'm reading the Quick Look

Re: Quick Look with native types?

2008-11-27 Thread Jean-Nicolas Jolivet
... 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, TIFF, PNG, JPEG, PDF, and QuickTime movies

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

2008-11-26 Thread Jean-Nicolas Jolivet
for 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 any good examples

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

2008-11-26 Thread Jean-Nicolas Jolivet
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, 2008, at 12:06 AM, Jean-Nicolas Jolivet wrote

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

2008-11-26 Thread Jean-Nicolas Jolivet
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:36 PM, Jean-Nicolas Jolivet wrote: As I said... I have no problems with dragging files on the data table... my table

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

2008-11-26 Thread Jean-Nicolas Jolivet
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 you're talking about... you posted

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

Figure out the size of an NSAttributedString

2008-11-26 Thread Jean-Nicolas Jolivet
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 cocoa-dev

Re: Figure out the size of an NSAttributedString

2008-11-26 Thread Jean-Nicolas Jolivet
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 image and I

Correctly drawing a custom view...

2008-11-25 Thread Jean-Nicolas Jolivet
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 do not post admin requests

Re: Correctly drawing a custom view...

2008-11-25 Thread Jean-Nicolas Jolivet
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 moderator comments

Supporting Tiger, using leopard functions when possible?

2008-11-25 Thread Jean-Nicolas Jolivet
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 [EMAIL PROTECTED] http

NSTableView Drag-Drop re-ordering...

2008-11-25 Thread Jean-Nicolas Jolivet
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 (Cocoa-dev

Re: Multiple views in a nib file?

2008-11-24 Thread Jean-Nicolas Jolivet
... 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 example as it seemed easier

Automatic file numbering ideas...

2008-11-23 Thread Jean-Nicolas Jolivet
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 appreciated? Jean-Nicolas

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 like the default

Re: Automatic file numbering ideas...

2008-11-23 Thread Jean-Nicolas Jolivet
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 probably work (pseudo-code): cnt = 1 filename

Multiple views in a nib file?

2008-11-23 Thread Jean-Nicolas Jolivet
looking at this the wrong way? Any help 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: Multiple views in a nib file?

2008-11-23 Thread Jean-Nicolas Jolivet
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 each views are in separate nib files

Re: Fastest way to resize an image?

2008-11-22 Thread Jean-Nicolas Jolivet
], [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, Heinrich Giesen

Re: Fastest way to resize an image?

2008-11-22 Thread Jean-Nicolas Jolivet
...) 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 images to resize. anyway, right now I am

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

Forcing toolbar validation...

2008-11-20 Thread Jean-Nicolas Jolivet
that 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] http

Re: Fastest way to resize an image?

2008-11-20 Thread Jean-Nicolas Jolivet
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 ___ Cocoa-dev mailing list

Re: Forcing toolbar validation...

2008-11-20 Thread Jean-Nicolas Jolivet
, 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; } So that everything is disabled when my process

NSImageView and releasing it's images...

2008-11-20 Thread Jean-Nicolas Jolivet
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 cocoa-dev-admins

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

2008-11-20 Thread Jean-Nicolas Jolivet
?? 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.. then click preview

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

2008-11-20 Thread Jean-Nicolas Jolivet
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 [EMAIL PROTECTED] http://www.silverscripting.com

Difference between Target and Executable ?

2008-11-20 Thread Jean-Nicolas Jolivet
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] http://www.silverscripting.com ___ Cocoa

Re: Difference between Target and Executable ?

2008-11-20 Thread Jean-Nicolas Jolivet
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 instructions here: http://aplus.rs/cocoa/how

Question about NSThread?

2008-11-19 Thread Jean-Nicolas Jolivet
(it 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... Jean-Nicolas

Re: Question about NSThread?

2008-11-19 Thread Jean-Nicolas Jolivet
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/stefan_sinclair%40hotmail.com This email sent to [EMAIL PROTECTED] Proud to be a PC? Show the world. Download the “I’m a PC” Messenger themepack now. Download now. Jean-Nicolas Jolivet [EMAIL PROTECTED

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 images

Re: Question about NSThread?

2008-11-19 Thread Jean-Nicolas Jolivet
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: On Wed, Nov 19, 2008 at 3:57 PM

Re: Cocoa apps protection software

2008-11-19 Thread Jean-Nicolas Jolivet
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 the moderators at cocoa-dev-admins

Fastest way to resize an image?

2008-11-19 Thread Jean-Nicolas Jolivet
... 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://www.silverscripting.com

Re: Which framework to use CGImage?

2008-11-18 Thread Jean-Nicolas Jolivet
with error code -15. I am already importing QuartzCore/QuartzCore.h because I'm using CIImag, however, now I need to use CGImage and for some reason I can't get it to work... Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com

Re: Which framework to use CGImage?

2008-11-18 Thread Jean-Nicolas Jolivet
or should you send an empty one? | Jean-Nicolas Jolivet wrote: Well, apparently it's not a framework problem since I can use: CGImageSourceRef source = CGImageSourceCreateWithData((CFDataRef)tempData, NULL); without a problem... Any other reasons why CGImageSourceCreateWithURL would yield

Re: Which framework to use CGImage?

2008-11-18 Thread Jean-Nicolas Jolivet
of the tags are read Jean-Nicolas Jolivet On 18-Nov-08, at 3:41 AM, Jean-Nicolas Jolivet wrote: Wait you might be onto something... I was using [NSURL URLWithString] instead of [NSURL fileURLWithPath] On 18-Nov-08, at 3:35 AM, Roland King wrote: one possible .. |kCFURLImproperArgumentsError

Can 2 nib share a same custom class instance?

2008-11-18 Thread Jean-Nicolas Jolivet
of my CustomWindowController??? 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

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

2008-11-18 Thread Jean-Nicolas Jolivet
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, Jean-Nicolas Jolivet [EMAIL

NSArrayController - Remove all objects?

2008-11-18 Thread Jean-Nicolas Jolivet
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] http://www.silverscripting.com

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'm working

CoreImage filters question

2008-11-17 Thread Jean-Nicolas Jolivet
of CIColorControls has the following limits: Default value: 0.00 Minimum: -1.00 Maximum: 0.00 Slider minimum: -1.00 Slider maximum: 1.00 Identity: 0.00 Does it mean the value can go up to 1.0? or is the Maximum actually 0.00? It's a bit confusing Jean-Nicolas Jolivet [EMAIL PROTECTED

Notifying that a TextView's content has been changed?

2008-11-14 Thread Jean-Nicolas Jolivet
view and insert some more text THEN click save, it works... It only fails when the textview's content has been set programatically only but not been touched by the user... Any help would be appreciated Jean-Nicolas Jolivet [EMAIL PROTECTED] http://www.silverscripting.com

Re: Notifying that a TextView's content has been changed?

2008-11-14 Thread Jean-Nicolas Jolivet
you do setString: On 15-Nov-08, at 1:23 AM, Jean-Nicolas Jolivet wrote: I have a TextView set up so its data is bound to my User Defaults controller so that its content is saved when I press a button... If I enter some text manually and click on my Save button (the one that saves

  1   2   >