Re: NSTableView automatic column size

2014-07-02 Thread Varun Chandramohan
Xcode from throwing up warning at least? Regards, Varun On 2/07/2014 1:59 pm, Ken Thomases k...@codeweavers.com wrote: On Jul 1, 2014, at 6:46 PM, Varun Chandramohan wrote: I have a NSTableView (View based) with 8 NSTableColumn each of which has NSTableCellView as default built from IB. I

NSTableView automatic column size

2014-07-01 Thread Varun Chandramohan
Hi All, I have a NSTableView (View based) with 8 NSTableColumn each of which has NSTableCellView as default built from IB. I followed apple guide https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/TableView/Introduction/Introduction.html#//apple_ref/doc/uid/1026i-CH1-SW1

Re: NSReleasePool issue

2014-06-24 Thread Varun Chandramohan
Hi All, Apple has notified that this a known bug and they have a duplicate of the bug I submitted regarding this issue. They closed my bug. I am not sure if bug numbers will benefit anyone in this forum, if so let me know ill post it. Regards, Varun From: Jens Alfke

NSTableHeaderView split

2014-06-23 Thread Varun Chandramohan
Hi All, Is there ant simple to have a split header view to generalise sub header? Here is an example of what I want to achieve using NSTableHeaderView? --- |header 1 | Common Header Txt | | |

Re: NSReleasePool issue

2014-06-22 Thread Varun Chandramohan
I agree on the fact that if the auto pool is introduced in main then its going to mask all the leaks in other parts of the code leading to unknown memory leaks. I see a divided option on this, but in OSX world this should be taken care by OS itself. Perhaps I will report this to Apple and see

RE: NSReleasePool issue

2014-06-21 Thread Varun Chandramohan
This is OS X not iOS. Yes main look like what is shown below without the autoreleasepool. From: Sean McBride s...@rogue-research.com Sent: Saturday, June 21, 2014 2:39 AM To: Steve Christensen; Varun Chandramohan Cc: Cocoa-Dev List Subject: Re

NSReleasePool issue

2014-06-19 Thread Varun Chandramohan
Hi All, I was playing around with OBJ_DEBUG_MISSING_POOL env variable and set it to YES. I was able to debug most of the issues in my code where I missed auto release pools. This is the last one remaining. However I am not sure where the leak is happening. It looks like NSApplicationMain, do

Re: Question on NSTableViewDataSource Protocol

2014-05-18 Thread Varun Chandramohan
be a valid row in table code? Could I do something like this before removing the objects? [ltableView removeRowsAtIndexes:indexes withAnimation:NSTableViewAnimationSlideDown]; Regards, Varun On 16/05/2014 4:45 pm, Graham Cox graham@bigpond.com wrote: On 16 May 2014, at 11:18 am, Varun Chandramohan

Question on NSTableViewDataSource Protocol

2014-05-15 Thread Varun Chandramohan
Hi All, I was playing around with dragging items into NSTableView and I ran into a interesting problem. When I drag an item into my table, the following delegate gets called. - (BOOL)tableView:(NSTableView *)tableView acceptDrop:(idNSDraggingInfo)info row:(NSInteger)row

Re: NSWorkspace issue

2014-05-07 Thread Varun Chandramohan
Ah yes, that was the mistake. I did not notice it. Probably its always a good idea to use fileURLWithPath as I always deal with file urls and not http://. On 7/05/2014 3:58 pm, Ken Thomases k...@codeweavers.com wrote: On May 7, 2014, at 12:02 AM, Varun Chandramohan wrote: NSURL *fileURL

NSWorkspace issue

2014-05-06 Thread Varun Chandramohan
Hi All, I wanted to open a Finder window from my app with a file pre-selected. The user could perform any Finder operations needed. I looked around the internet and it turns out the best way to do this is using NSWorkspace. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification

Re: Question on NSScrollView

2014-05-04 Thread Varun Chandramohan
Hi Quincey, You are right, the code is taken from the link you posted. Actually I understand that group rows were demonstrated in that code. Actually when I remove group code I get desired result. I was trying to include group rows so that in future should I need that feature, I need not revisit

Re: Question on NSScrollView

2014-05-02 Thread Varun Chandramohan
...@rivergatesoftware.com Date: Friday, 2 May 2014 3:12 pm To: Development varun.chandramo...@wontok.commailto:varun.chandramo...@wontok.com Cc: Cocoa dev Cocoa-dev@lists.apple.commailto:Cocoa-dev@lists.apple.com Subject: Re: Question on NSScrollView On May 1, 2014, at 17:25 , Varun Chandramohan varun.chandramo

Re: Question on NSScrollView

2014-05-01 Thread Varun Chandramohan
why this is happening and how to get rid of this? Regards, Varun On 30/04/2014 12:40 pm, Graham Cox graham@bigpond.com wrote: On 30 Apr 2014, at 12:20 pm, Varun Chandramohan varun.chandramo...@wontok.com wrote: Can someone tell me if NSScrollView can be extended to work like that? Any

Re: Question on NSScrollView

2014-05-01 Thread Varun Chandramohan
, Varun Chandramohan varun.chandramo...@wontok.commailto:varun.chandramo...@wontok.com wrote: However this is not the case with the same table populated manually using NSPasteboardReading and NSTableViewDataSource, NSTableViewDelegate. I noticed a grey background to all the entries to the table

Question on NSScrollView

2014-04-29 Thread Varun Chandramohan
Hi Guys, In my app I have a scrollview that displays a list of file paths which is populated by NSArrayController. This work well, except that I wanted to add some fancy functionality to it. I have seen some apps allow dragging a file from Finder into scroll view to add it. This is a neat

Re: Memory Leaks and ARC

2014-04-22 Thread Varun Chandramohan
Hi Guys, Since we are on the topic I noticed something interesting in my code. My development environment is 10.9.1, and when ever I run ³leaks² command to check for memory leaks I get none. It seems pretty clean. However when I run the same code in older OS 10.7.x and run leaks there I noticed

Re: Memory Leaks and ARC

2014-04-22 Thread Varun Chandramohan
:05 pm, Greg Parker gpar...@apple.com wrote: On Apr 22, 2014, at 6:49 PM, Jens Alfke j...@mooseyard.com wrote: On Apr 22, 2014, at 6:38 PM, Varun Chandramohan varun.chandramo...@wontok.com wrote: However when I run the same code in older OS 10.7.x and run leaks there I noticed big dump of leaks

Re: NSOperation Issues

2014-04-21 Thread Varun Chandramohan
On 4/04/2014 11:16 am, Ken Thomases k...@codeweavers.com wrote: On Apr 3, 2014, at 7:02 PM, Varun Chandramohan wrote: On 4/04/2014 10:47 am, Jerry Krinock je...@ieee.org wrote: On 2014 Apr 03, at 16:11, Varun Chandramohan varun.chandramo...@wontok.com wrote: when I port the same code

Re: NSOperation Issues

2014-04-21 Thread Varun Chandramohan
On 22/04/2014 9:10 am, Ken Thomases k...@codeweavers.com wrote: On Apr 21, 2014, at 5:47 PM, Varun Chandramohan wrote: op = [[QCCAESPadCryptor alloc] initToDecryptInputData:[NSData dataWithBytes:cyphertext_dat length:sizeof(cyphertext_dat

Re: Fast NSArray compare

2014-04-15 Thread Varun Chandramohan
To summarise what was discussed, - I think the folder hierarchy problem is easily solvable as I always traverse from top of the tree. If an entry for one of the folders is found in my set I stop the traversal to lower leaves of the tree. - I would be using NSSet to store my “restrict list”.

Fast NSArray compare

2014-04-14 Thread Varun Chandramohan
Hi All, I have a question about efficiency when trying to compare NSURL. The requirement is quite simple. I try and iterate through a directory to all subdirectories and files. While doing this walk-through, I need to check against an array of NSURLs which are restricted files and folders.

Re: Fast NSArray compare

2014-04-14 Thread Varun Chandramohan
Thomases k...@codeweavers.com wrote: On Apr 14, 2014, at 7:02 PM, Varun Chandramohan wrote: I have a question about efficiency when trying to compare NSURL. The requirement is quite simple. I try and iterate through a directory to all subdirectories and files. While doing this walk-through, I need

Re: Retain count in non ARC

2014-04-06 Thread Varun Chandramohan
Hi Graham, Thank you for such detailed explanation. I made a few changes except the type check of what NSPropertyListSerialization returns. Ill be adding that soon. Other than that, I wanted you to take a look at the changes I made and let me know if you see any problems. I tested it, at it seems

Re: NSOperation Issues

2014-04-06 Thread Varun Chandramohan
that such issues would be addressed very quickly by Apple? No? Regards, Varun On 4/04/2014 4:07 pm, Kyle Sluder k...@ksluder.com wrote: On Apr 3, 2014, at 9:54 PM, Jens Alfke j...@mooseyard.com wrote: On Apr 3, 2014, at 7:47 PM, Varun Chandramohan varun.chandramo...@wontok.com wrote: I understand what

Re: Retain count in non ARC

2014-04-06 Thread Varun Chandramohan
Thanks guys, really appreciate it. On 7/04/2014 1:25 pm, Ken Thomases k...@codeweavers.com wrote: On Apr 6, 2014, at 9:18 PM, Graham Cox wrote: On 7 Apr 2014, at 10:35 am, Varun Chandramohan varun.chandramo...@wontok.com wrote: @property (retain) NSArray* contents; Should

NSOperation Issues

2014-04-03 Thread Varun Chandramohan
Hi All, I have some basic decryption I do with common crypto that works very well when I use in my app, some sample code below. QCCAESPadCryptor * op; NSString *licenseKey = nil; NSOperationQueue *queue; op = [[QCCAESPadCryptor alloc] initToDecryptInputData:[NSData

Re: NSOperation Issues

2014-04-03 Thread Varun Chandramohan
Oh you mean, the runloop has not been initialised and the daemon is exiting before that? That could be the cause. Thanks I will investigate. On 4/04/2014 10:47 am, Jerry Krinock je...@ieee.org wrote: On 2014 Apr 03, at 16:11, Varun Chandramohan varun.chandramo...@wontok.com wrote: when I

Re: NSOperation Issues

2014-04-03 Thread Varun Chandramohan
@lists.apple.commailto:cocoa-dev@lists.apple.com Subject: Re: NSOperation Issues On Apr 3, 2014, at 4:11 PM, Varun Chandramohan varun.chandramo...@wontok.commailto:varun.chandramo...@wontok.com wrote: I suspect that NSOperationQueue cannot be used as daemon running as root user? This isn't directly related

Re: NSOperation Issues

2014-04-03 Thread Varun Chandramohan
Thanks Ken, That helped. Regards, Varun On 4/04/2014 11:16 am, Ken Thomases k...@codeweavers.com wrote: On Apr 3, 2014, at 7:02 PM, Varun Chandramohan wrote: On 4/04/2014 10:47 am, Jerry Krinock je...@ieee.org wrote: On 2014 Apr 03, at 16:11, Varun Chandramohan varun.chandramo

Retain count in non ARC

2014-04-03 Thread Varun Chandramohan
Hi Guys, I was looking into an older project which does not use ARC and I noticed new static code analysis issues with leaks. Here is a little sample code of the object in question. @interface TempConfig : NSObject @property (assign) NSMutableArray* contents;

NSBox Border Width Property

2014-03-31 Thread Varun Chandramohan
Hi All, I have a view which has a NSBox. The view is designed and managed by IB and I am doing nothing from code. The NSBox is of type (primary, the way I want it), and border type is Line. When I use this, I get warning Border width requires NSCustomBox type and NSLineBorder type. To get rid

Re: NSBox Border Width Property

2014-03-31 Thread Varun Chandramohan
:14 pm, Varun Chandramohan varun.chandramo...@wontok.com wrote: have a view which has a NSBox. The view is designed and managed by IB and I am doing nothing from code. The NSBox is of type (primary, the way I want it), and border type is Line. When I use this, I get warning Border width requires

Re: NSBox Border Width Property

2014-03-31 Thread Varun Chandramohan
Ok, Setting it to 1 solved it. Looks like it should not be 0. Regards, Varun On 1/04/2014 2:57 pm, Varun Chandramohan varun.chandramo...@wontok.com wrote: Hi Graham, I checked that before posting here. In Size Inspector for ³Box Margins (Horizontal) 0 (Vertical) 0 Border (Width) 0 (Radius) 0