bare bones app crashing, is it a code signing issue?

2017-10-12 Thread Navneet Kumar
Hi, I have MacOS High Sierra and Xcode 9. When I start a new project without any development team, choosing Obj-c, and adding nothing to the code, the app starts and shows the window. Now I added my Apple ID in Xcode accounts preferences, a cert is created and a personal team is created bearing

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-30 Thread Navneet Kumar
Hi, Thanks for the valuable insights. I think I’m gonna go with child windows and not sheets as I have to support os x 10.7. Thanks again, Navneet > On 30-Jun-2017, at 11:25 PM, Quincey Morris > wrote: > > On Jun 30, 2017, at 08:07 , Navneet Kumar <mailto:navnee...

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-30 Thread Navneet Kumar
720062/are-layer-backed-nsview-siblings-allowed-to-overlap <https://stackoverflow.com/questions/10720062/are-layer-backed-nsview-siblings-allowed-to-overlap> Wishes, Navneet > On 27-Jun-2017, at 10:56 PM, Quincey Morris > wrote: > > On Jun 27, 2017, at 06:57 , Navneet Kumar

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-27 Thread Navneet Kumar
…. Is it too dumb of a question? Something very basic I maybe missing? Please look at the earlier question, it has a link to a image showing the problem. Please help. Navneet > On 16-May-2017, at 9:44 PM, Navneet Kumar wrote: > > Hi, > > I have the following view hierar

Focus ring of NSComboBox and text field visible through overlaid views

2017-05-16 Thread Navneet Kumar
Hi, I have the following view hierarchy in question: self.window.contentView --subview--> Transparent view (in code, main purpose to have a drop shadow for subview) of same size with setWantsLayer and a drop shadow, also acceptsFirstResponder --subview--> a smaller centred view (subclassed for

Re: [solved] View based outline view checkboxes not showing state when window is not front most

2017-05-08 Thread Navneet Kumar
macOS Sierra . Setting state of checkboxes directly via setState:. I removed the two lines: setting bezel style and border and it started working as expected. Thanks, Navneet Sent from my iPhone > On 08-May-2017, at 10:17 PM, Quincey Morris > wrote: > >> On May 8, 2017, at

View based outline view checkboxes not showing state when window is not front most

2017-05-08 Thread Navneet Kumar
Hi, I have a view based outline view with first column for checkboxes. I'm adding the checkbox button as a sub view to the custom supplied view for the item for the first column. If a checkbox is checked, it starts showing as unchecked the moment the window gets in background. Same way all the

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-12 Thread Navneet Kumar
Hi, Thanks for the valuable insights. Wishes, Navneet > On 12-Apr-2017, at 12:42 AM, Quincey Morris > wrote: > > On Apr 11, 2017, at 08:32 , Navneet Kumar <mailto:navnee...@me.com>> wrote: >> >>> 4. Anti-aliasing. There is some behind the scene

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Navneet Kumar
ntext]graphicsPort]; > >CGContextSetShouldSmoothFonts(ctx,YES); > > stuff inside the -drawRect: method? That is where it needs to be. Try both > YES and NO. Should be a visible difference. > > Gerd > > >> On Apr 11, 2017, at 10:55, Navneet Kumar wrote: >&

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Navneet Kumar
Hi, Here is another image with a character in each case zoomed in using ColorMeter. http://i66.tinypic.com/2w5m795.jpg Wishes, Navneet > On 11-Apr-2017, at 2:00 AM, Quincey Morris > wrote: > > On Apr 10, 2017, at 11:20 , Navneet Kumar <mailto:navnee...@me.com>> wrote

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Navneet Kumar
responses to the points raised below. > On 11-Apr-2017, at 2:00 AM, Quincey Morris > wrote: > > On Apr 10, 2017, at 11:20 , Navneet Kumar <mailto:navnee...@me.com>> wrote: >> >> Actually I’m using text fields for simplicity at a lot of places. And >>

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-10 Thread Navneet Kumar
Hi, Checked. Both the fonts (text field’s as well as descAttribs) are same with same “spc” values, at run time. Tried with “Arial Bold”, but same result: text field rendering looks bolder and darker. As Rob suggested, if its a more deeper thing like “updateLayer vs not” case, what can be done?

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-10 Thread Navneet Kumar
10-Apr-2017, at 9:06 PM, Jens Alfke wrote: > > >> On Apr 10, 2017, at 7:41 AM, Navneet Kumar > <mailto:navnee...@me.com>> wrote: >> >> The image URL to a sample image: http://i63.tinypic.com/xbe0bc.jpg >> <http://i63.tinypic.com/xbe0bc.jpg> >&

Visible difference in text: NSTextField vs drawInRect:

2017-04-10 Thread Navneet Kumar
Hi, There is visible difference in text when setting the same string, same font, same text colour to a text field. And when the same is done via NSString drawInRect method having same attributes for text. The image URL to a sample image: http://i63.tinypic.com/xbe0bc.jpg The top text is using

Re: Mouse tracking under a transparent view still working

2015-01-11 Thread Navneet Kumar
kingarea-report.html> Still not able to understand as to fix this problem. Wishes, Navneet > On 11-Jan-2015, at 3:53 pm, Markus Spoettl wrote: > > On 11/01/15 07:12, Navneet Kumar wrote: >> So the mouse click etc are not passing through, but the hover button under it >> still show

Mouse tracking under a transparent view still working

2015-01-10 Thread Navneet Kumar
Hi, I have a hover button in my window, implemented tracking area and mouseEntered: and mouseExited: to achieve this (the button draws a border around it on mouse entered). Now sometimes I need to put a window size transparent view over the entire window and block mouse events from filtering t

Re: wits end with nsview and nsrectfill()

2014-12-13 Thread Navneet Kumar
can still get the same source list style color in its appearance and not have this patch? If setting background color is the solution, how to get source list color without applying it? Any ideas? Wishes, Navneet > On 04-Dec-2014, at 8:13 pm, Navneet Kumar wrote: > > Hi, > > The

Re: wits end with nsview and nsrectfill()

2014-12-04 Thread Navneet Kumar
course), could block some views from refreshing altogether? If I could get a few pointers, I might get to the bottom of this problem. Best, Navneet > On 01-Dec-2014, at 11:28 am, Navneet Kumar wrote: > > Thanks for the responses. > > The problem is still there. >

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Navneet Kumar
On Nov 30, 2014, at 9:30 AM, Navneet Kumar wrote: >> >> Hi, >> >> I have a custom view in which I am setting the background using NSRectFill() >> in drawRect:. > > You’re aware that this function is only really suitable for drawing opaque > colors, yes? If yo

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Navneet Kumar
Rect: is solely to [re-]draw the contents > of one view, not build a view hierarchy. I expect that modifying the view > hierarchy while in the middle of a drawing cycle is leaving views in an > inconsistent state. > > >> On Nov 30, 2014, at 9:30 AM, Navneet Kumar wrote

wits end with nsview and nsrectfill()

2014-11-30 Thread Navneet Kumar
Hi, I have a custom view in which I am setting the background using NSRectFill() in drawRect:. I am also adding a text field as subview in this method. The textfield is non-selectable, non-editable and is not set to draw background. When the view comes to front, the background is same, but when

Storing a value to access across app launches and even re-install

2014-08-18 Thread Navneet Kumar
Hi, I need to store a numeric value in the system and update and access it across every launch of my app. Also is it possible to safely store it in the system so that it can be picked up even after a re-install of my app? I want it to be secure, so that even a os x savvy user may not be able to

Re: having both cell based and view based outline views in one project

2014-07-12 Thread Navneet Kumar
> >> On Jul 12, 2014, at 9:20 AM, Navneet Kumar wrote: >> >> I had one (set cell-based in IB) outline view in my project using custom >> cell for one table Column (identifier : “Description”). >> And it was working fine with my AppDelegate implementing the requ

having both cell based and view based outline views in one project

2014-07-12 Thread Navneet Kumar
Hi, I had one (set cell-based in IB) outline view in my project using custom cell for one table Column (identifier : “Description”). And it was working fine with my AppDelegate implementing the required datasource and some delegate methods. I added another (set view-based in IB) outline view an

AVFoundation video not playing in root mode

2014-05-27 Thread Navneet Kumar
Hi, The code I’m using is as follows: (it works well and videos plays when logged in as admin user, but doesn’t play when the app is run as root): In awakeFromNib: [[avPlayerView layer] setBackgroundColor:CGColorGetConstantColor(kCGColorClear)]; // Create the AVPlayer, add rate

[SOLVED] Re: is GC not available on 10.5.8?

2009-10-23 Thread Navneet Kumar
Hi, Thanks for the valuable replies, they may come in handy in future. Although the base sdk was chosen to be 10.5 at various places, the menu Project->Active SDK was still 10.6, did it to 10.5 and it is working now. Thanks, Nick On 23-Oct-2009, at 9:26 PM, Jeremy Pereira wrote: The load

where to release a CF object thats retained by a cocoa object

2009-09-27 Thread Navneet Kumar
Hi, From a method in my AppController class I'm calling a function in another file as follows: In AppController in init method:- [self initialDriveList]; In AppController in initialDriveList method: //some code here [self volumeList]; // rest of the code here In AppController in volumeList

Re: Stability on Snow Leopard

2009-09-22 Thread Navneet Kumar
Hi, Thanks for the quick and appropriate reply. My intention was to get some general responses on two things: Memory Management in a program on SnowLeopard (strictly needed?) and the need for code signing. Of course, I'll need to tackle the crash situations individually, and they are a lo

Re: saving files/folders in foreign language names

2009-08-31 Thread Navneet Kumar
Hi, Thanks for the reply. Actually my program is a finder like program, which saves file (in path hierarchy). And the hierarchy I mentioned earlier is the actual hierarchy on the user's file system. I'm not hard coding anything. What I think is happening is that NSFM's changeCurrentDirectory

Re: debug control not reaching init method

2009-08-20 Thread Navneet Kumar
Hi, AppController is not coming from an archive. Dragged an NSObject to MainMenu.xib, set its class to AppController, made AppController the delegate of File's Owner. Thanks, Nick On 20-Aug-09, at 4:47 PM, Graham Cox wrote: On 20/08/2009, at 9:08 PM, Nick Rogers wrote: What I may be mis

Re: thread count problem

2008-04-21 Thread Navneet Kumar
Thanks for the reply. No, it doesn't affect my app. I was just asking whether it is a problem. On 22-Apr-08, at 1:52 AM, David Duncan wrote: On Apr 21, 2008, at 1:03 PM, Nick Rogers wrote: when I run my cocoa app, Activity monitor shows it having 2 threads, and thats ok, cause I'm running on

Re: to write to file except NSData*

2008-04-15 Thread Navneet Kumar
ok, so if i generate a header NSData object and write that to file, and then then write the larger NSData object, how will i read one NSData after the another. How will i know what length should I read. excuse me if this sounds very newbie to you. Wishes, Nick On 15-Apr-08, at 8:30 PM, Alast