Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8393731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:52:39+00:00 2026-06-09T19:52:39+00:00

In my Browser implementation to select default rows I have used the following code.

  • 0

In my Browser implementation to select default rows I have used the following code.

[browser setTarget:self];
[browser setAction:@selector(singleClickOnBrowser:)];
[browser sendActionOn:NSLeftMouseDown];
[browser selectRow:0 inColumn:0];
[browser sendAction];

Is there any way to differentiate user click and the rows selected for the first time to select default rows?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:52:40+00:00Added an answer on June 9, 2026 at 7:52 pm

    I did not find any API to differentiate user click and selecting the rows and columns from code. To achieve this I declared a BOOL variable to keep track of user clicks.

    Following Code I changed the BOOL variable in Code.

    self.userClickedOnRow = NO;
            [self.browser selectRow:0 inColumn:0];
        [self.browser sendAction];
            self.userClickedOnRow = YES;
    

    Implemented the following delegate

     - (void)browser:(NSBrowser *)browser didChangeLastColumn:(NSInteger)oldLastColumn toColumn:(NSInteger)column
        {
    
            if(!self.userClickedOnRow)
            {
                NSLog(@"Programatic selection");
            }
            if (self.userClickedOnRow)  
            {
                self.userClickedOnRow = NO;
                // User Clicked on the browser,Do the required actions and set the variable again.
                self.userClickedOnRow = YES;
    
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have a slightly non-standard implementation of FancyBox. By default you have to
My Pagemethod implementation is not working in Chrome browser. I have ASP.NET 3.5 web
I have the following implementation of HttpSessionlistener public class SessionListener implements HttpSessionAttributeListener, HttpSessionListener {
In the default implementation of the JsonValueProviderFactory, JavaScriptSerializer.DeserializeObject() method is used. This method throws
So the following code is Lee's implementation of a preloader which works fine first
Where can I get a list of browser differences in the implementation of DOM?
Using browser firefox and chrome I have an input file element. <input type='file' id='tempFileInput'
The browser-based software StudyTRAX ( http://wiki.studytrax.com ), used for research data management, allows for
Take the following code: $(#docUploadForm).on(submit, function(event) { event.preventDefault(); }); Simple enough so far, right?
I got the following Request Queue implementation from this blog: http://dsgdev.wordpress.com/2006/10/28/building-a-javascript-http-request-queue/ and want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.