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
the rest of the string I only see Blah Its as if only a part of the string was populated into the NSTextField as part of NSTableCellView. I did not find any information on this in the guide. Any pointers? I would have expected this to be the default behaviour. Regards, Varun

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 j...@mooseyard.commailto:j

NSTableHeaderView split

2014-06-23 Thread Varun Chandramohan
other way to do the same? Regards, Varun ___ 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

Re: NSReleasePool issue

2014-06-22 Thread Varun Chandramohan
what they have to say. Does anyone know where to report the issue? Regards, Varun From: Jens Alfke j...@mooseyard.commailto:j...@mooseyard.com Date: Sunday, 22 June 2014 5:24 am To: Kyle Sluder k...@ksluder.commailto:k...@ksluder.com Cc: Development varun.chandramo

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
run] + 206 frame #6: 0x7fff895507a3 AppKit`NSApplicationMain + 940 * frame #7: 0x00012022 TOS`main(argc=3, argv=0x7fff5fbffa90) + 34 at main.m:13 (lldb) c Regards, Varun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

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
? Regards, Varun ___ 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: https

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
not sure what is going on. The Finder window never pops up. I do see the top bar change to Finder bar but then the window is never present. The file I am trying to highlight is present. Is there anyway to know error code? The method is void. Regards, Varun

Re: Question on NSScrollView

2014-05-04 Thread Varun Chandramohan
the implementation. I tried to make group rows behave as normal. For now I decided to comment out the code that makes it group rows. Thanks for your help. Regards, Varun On 3/05/2014 8:06 am, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On May 2, 2014, at 14:06 , Lee Ann Rucker lruc

Re: Question on NSScrollView

2014-05-02 Thread Varun Chandramohan
: NSTableViewSelectionHighlightStyleSourceList]; It at least gets me the blue highlight colour. However there is some weird blue background now. http://snag.gy/a1AC3.jpg is how it looks now. Still not a white background. Regards, Varun From: Quincey Morris quinceymor...@rivergatesoftware.commailto:quinceymor

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
*groupCell = [tableView makeViewWithIdentifier:@GroupCell owner:self]; [groupCell.textField setStringValue:entity.name]; return groupCell; } return nil; } Are you saying I should not return nil here? Regards, Varun From: Quincey Morris quinceymor

Question on NSScrollView

2014-04-29 Thread Varun Chandramohan
functionality without the need to have buttons to manipulate the list. Can someone tell me if NSScrollView can be extended to work like that? Any suggestions? Regards, Varun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Memory Leaks and ARC

2014-04-22 Thread Varun Chandramohan
? Regards, Varun On 23/04/2014 9:18 am, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 22, 2014, at 15:18 , Dave d...@looktowindward.com wrote: I assumed that ARC would release myImage on each interation of the loop, however, this seems not to be the case The ŒmyImage¹ variable gives

Re: Memory Leaks and ARC

2014-04-22 Thread Varun Chandramohan
to put create auto release pool here for NS objects that are used. Is it a good idea to put in pools for each runloop callbacks? I already have pool in place for all threads I created using pthread_create. The only place is missing is the main thread as show above. Regards, Varun On 23/04/2014 2

Re: NSOperation Issues

2014-04-21 Thread Varun Chandramohan
experiment - (void) runOp:(id) obj { QCCAESPadCryptor * op = obj; [queue addOperation:op]; [queue waitUntilAllOperationsAreFinished]; } [self performSelectorOnMainThread:@selector(runOp:) withObject:op waitUntilDone:YES]; Neither did this work. Any suggestions? Regards, Varun

Re: NSOperation Issues

2014-04-21 Thread Varun Chandramohan
Hi Ken, You are right this is not NSOp issues as it seems to have finished. [queue waitUntilAllOperationsAreFinished]; [op isCancelled] replied with NO [op isFinished] with YES So this has to be some QCCAESPadCryptor internal error. Ill investigate this further. Thank you. Regards, Varun

Re: Fast NSArray compare

2014-04-15 Thread Varun Chandramohan
the restricted list, I could do a file existence check for all entries in the restricted set. - I will be converting the NSSet to NSArray and save it in file. I read the array as NSSet when the application starts. Is there something else I am missing? Regards, Varun On 16/04/2014 4:17 am, Gary L. Wade

Fast NSArray compare

2014-04-14 Thread Varun Chandramohan
. Whats the best way to do partial NSURL compare? Or is it better I store it as NSString instead of NSURL? Regards, Varun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Fast NSArray compare

2014-04-14 Thread Varun Chandramohan
to convert it to NSArray and store? Am I missing something? I figured if I put resource identifier object into the NSMutableSet then will I be able to write this into a file? I know it is possible if I store it as NSString but might not allow id? Regards, Varun On 15/04/2014 12:01 pm, Ken

Re: Retain count in non ARC

2014-04-06 Thread Varun Chandramohan
if I pass nil, the API will allocate mutable array which will be used later using addTempObject method. Regards, Varun On 4/04/2014 2:59 pm, Graham Cox graham@bigpond.com wrote: On 4 Apr 2014, at 2:40 pm, Graham Cox graham@bigpond.com wrote: Thirdly, casting the return value

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
? Regards, Varun ___ 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: https

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
to be root user right? Regards, Varun From: Jens Alfke j...@mooseyard.commailto:j...@mooseyard.com Date: Friday, 4 April 2014 11:47 am To: Development varun.chandramo...@wontok.commailto:varun.chandramo...@wontok.com Cc: cocoa-dev@lists.apple.commailto:cocoa-dev@lists.apple.com cocoa-dev

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
this code to make static analyser understand that I will be releasing the resource? If I removed the retain count, the warning goes away but it contents is freed and I crash. Regards, Varun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

NSBox Border Width Property

2014-03-31 Thread Varun Chandramohan
of this warning, if I simply select type of box as Custom it works. However I want the box to be Primary. How do I not use border width property? I don't even know how this is getting added. Perhaps because of width constrains? If so is there a way to get rid of this? Regards, Varun

Re: NSBox Border Width Property

2014-03-31 Thread Varun Chandramohan
Hi Graham, I checked that before posting here. In Size Inspector for ³Box Margins (Horizontal) 0 (Vertical) 0 Border (Width) 0 (Radius) 0. That¹s what I am not able to understand where the problem is. - Varun On 1/04/2014 2:53 pm, Graham Cox graham@bigpond.com wrote: On 1 Apr 2014, at 1

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

Re: interface builder 3 question

2008-03-18 Thread varun
that helps, Varun ___ 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: http

Re: Creating Custom Views in Interface Builder

2008-03-14 Thread varun
/TP40004323-CH9-SW1 I actually suggest reading through the whole document. It's quite comprehensive. Varun Hello List! I am trying to create a custom view class using Interface Builder that I can then instantiate within my code as many times as needed. In this particular case I have a control