Cocoa app screen update issues on Mavericks

2014-01-27 Thread Abhijeet Singh
Hi,Recently I have compiled my application on Mac 10.9 (Mavericks). Screens are stopped updating. Its a multithreading application. GUI is made in Cocoa/Objc and secondary threads are posix threads and C. I updates my screens on getting message from secondary threads. I have a table view to show

Need faster approach to load data in NSTableView from a file

2012-10-26 Thread Abhijeet Singh
Hi,In my application I am reading data from a text file and displaying it in NSTableView. There are 6 columns in my tableview. My problem is when the records in file are more it takes too long to read and display the data. e.g. It takes around 1 min to read and display 70,000 records from the fi

Trap mouse and keyboard events

2012-06-24 Thread Abhijeet Singh
Hi,I want to perform some action in my application whenever user presses any key on keyboard or uses the mouse. How can I trap these eventsThanksAbhijeetDear cocoadev ! Get Yourself a cool, short @in.com Email ID now! ___ Cocoa-dev mailing list (C

NSImageView display problem

2012-06-12 Thread Abhijeet Singh
Hi,In my application I am displaying an image received from some third party camera library function in NSImageView on screen. On "Capture" button click the image is first saved on hard disk and then I display that image on screen. It works fine during the first time when I start my application.

How to restrict an app to run from harddisk

2012-05-22 Thread Abhijeet Singh
Hi,How can I check whether my application is running from Harddisk or from a removable media (CD, USB drive...). I used [[NSWorkspace sharedWorkspace] getFileSystemInfoForPath:path isRemovable:&isRem isWritable:&isWritable isUnmountable:&isUnmountable description:&description type:&type] method

Re: Re: Multiple Selection in NSComboBoxCell

2012-02-02 Thread Abhijeet Singh
quot;< fri...@manoverboard.org >Date: 2 Feb 12 21:53:09Subject: Re: Multiple Selection in NSComboBoxCellTo: Cc: cocoadev [Eliminated crosspost]On 2 Feb 2012, at 5:22 AM, Abhijeet Singh wrote:> in one of the NSComboBoxCell (col3) I want to give multiple selection option. Can I populate a list of

Re: Re: Multiple Selection in NSComboBoxCell

2012-02-02 Thread Abhijeet Singh
Original message From:"Christiaan Hofman"< cmhof...@gmail.com >Date: 2 Feb 12 18:15:09Subject: Re: Multiple Selection in NSComboBoxCellTo: Cc: "macosxdev" ;"cocoadev" On Feb 2, 2012, at 12:22, Abhijeet Singh wrote:> Hi,There are 5 columns in my table vi

Multiple Selection in NSComboBoxCell

2012-02-02 Thread Abhijeet Singh
Hi,There are 5 columns in my table view.Col1 Non editable, Col2 NSComboBoxCell (editable), Col3 NSComboBoxCell (editable), Col4 NSComboBoxCell (editable), Col5 NSButtonCellMy requirement is in one of the NSComboBoxCell (col3) I want to give multiple selection option. Can I populate a list

NSTextFieldCell not getting disabled

2012-01-29 Thread Abhijeet Singh
Hi,I have used NSComboBoxCell in my NSTableView to show the list of items. Once user done with its selection and moved to next TableView row I replace NSComboBoxCell with non editable NSTextFieldCell in previous row using (NSCell *)tableView:(NSTableView *)tableView dataCellForTableColumn:(NSTab

Problem in coming out of modal run loop

2011-07-25 Thread Abhijeet Singh
Hi,I am opening a NSPanel as a modal window using runModalForWindow method.The problem is when i close the panel the modal run loop is not stopped. I have tried all the possible ways ( stopModalWithCode, stopModal, abortModal). But nothing works. I have number of modal windows in my applications

Problem in table view handling

2011-06-09 Thread Abhijeet Singh
Hi,I have got a problem in my table view. There are four columns in my table view. The second column is editable rest are non editable. The last column has a button 'X' to delete the item.User can delete only the second last item from the table view. Hence 'X' button appears only corresponding t

how to add/remove button to a cell in tableview

2011-05-03 Thread Abhijeet Singh
Hi,There are four columns in my table view. The last column is empty. At run time I want to add a button to the last column depending upon a condition. If a condition is true for a row, button should be added (appeared) to the last column of the row. If condition is not true any more for a row t

cell editing in tableview

2011-04-20 Thread Abhijeet Singh
Hi,I want to somehow stop my user when he tries to leave the editable cell of table view and tries to select any other control in my window. I have tried cellTextDidEndEditing. But it doesnt work if user doesnt edit the editable cell of my table view. I want to show a message box to user when ev

How to simulate key press events

2011-04-20 Thread Abhijeet Singh
Hi,I have a table view in my application. One of the cell of the table view is editable. When my application window appears on screen the first row is by default added in table view and the cell is in editable mode. On Enter or Esc key press the user input from the cell is accepted and the data

How to get volume information

2011-02-14 Thread Abhijeet Singh
Hi,In my application 1. I want to check whether my application is running from CD (removable media) or from hard disk.I dont want to allow my user to run my application from hard disk. 2. Same application i developed in windows. I used to store the volume serial number of the CD that was first t

what are the disadvantages in keeping libraries and input files inside app bundle

2011-01-28 Thread Abhijeet Singh
Hi,I have number of static and dynamic libraries in my application. At present i have kept all the libraries in "\usr\local\lib" folder. I was wondering whether it would be a good idea to keep all these libraries inside the application bundle itself? Similarly there are number of input files tha

How to set tab order in a window that has view swapping

2011-01-24 Thread Abhijeet Singh
Hi,I have a single window with a toolbar and a custom view in my application. Toolbar has Back and Next button on it. This is my MainMenu.xib. I have 5 more xibs other than the MainMenu.xib in my application. Each xib contains one view with different controls in it. On Next and Back button click

How to set focus on table view's editable cell on Enter key press

2011-01-04 Thread Abhijeet Singh
Hi,I have a table view in my application. Table view has 3 columns. Items (rows) in table view are added on Enter (return) key press on keyboard. Column no 2 is editable and user needs to fill it. What I want to achieve is when user press Enter key on key board:1. New row is added in table view

Re: Re: How to read a text file over a network

2010-12-16 Thread Abhijeet Singh
010, at 10:12 PM, Abhijeet Singh wrote:> I think the type of server is AFP. Because the file path displayed by Finder is: afp://PriyankaMac.afpovertcp.tcp.local/shared/file1.txt.> But if i put the same file path in my file2.txt my program fails to open file1.txt file.That's most likely beca

Re: Re: How to read a text file over a network

2010-12-13 Thread Abhijeet Singh
n"< n...@chronosnet.com >Date: 13 Dec 10 21:45:28Subject: Re: How to read a text file over a networkTo: Cc: cocoa...@lists.apple.comon Dec 13, 2010, at 5:54 AM, Abhijeet Singh wrote:> Hi,I am new to Mac. In my application I have to read a text file (say file1.txt) from a user defined location/path

How to read a text file over a network

2010-12-13 Thread Abhijeet Singh
Hi,I am new to Mac. In my application I have to read a text file (say file1.txt) from a user defined location/path. User defines this filepath in another text file (say file2.txt). My program first reads file2.txt and gets the path of file1.txt from there. file2.txt always exists on my machine b

How to avoid multiple clicks on a push button

2010-11-22 Thread Abhijeet Singh
Hi,I am working on a user interface. There is only one window in my application with Back and Next buttons on it. On Next / Back button click my application performs some task and the current view is swapped with another view in the window. It works fine until somebody clicks Next (or Back) butt

NSTimer not working in a multithreaded application

2010-09-02 Thread Abhijeet Singh
Hi,I am working on a multithreaded software that runs on a medical instrument. The software has 2 parts. GUI and worker threads (worker threads sends commands to instrument). The GUI is developed using ObjectiveC and Cocoa. Worker threads are all in C and Carbon.It is a Cocoa application.I am wo

Communication between Cocoa and Carbon threads

2010-05-05 Thread Abhijeet Singh
Hi,I am new to Cocoa. Me and my team are working on an application for a scientific instrument. It is a Cocoa application in that user interface part is being developed using Cocoa. Now we have some lower level code that interacts with hardware and they are basically Carbon threads. Now our user

Colorful buttons of different shapes

2010-04-13 Thread Abhijeet Singh
Hi,I am porting my Win32 application to Mac. I am new to Cocoa. In my Windows Win32 application I have a window in that there is a 3 X 8 matrix of 24 buttons. Buttons are labeled as 124. Each button has 3 states. Unused Round shape green color(Default state) SelectedSquare shape orange color (Us

User interface like iPhone home screen......

2010-04-01 Thread Abhijeet Singh
Hi,I am working on a user interface in that there are number of buttons (options) on a toolbar. On each button click another window/screen is opened. I want to modify my main screen and make it something like iphone home screen or like Safari's "Top Sites" view. I mean instead of showing all the