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

  • SEARCH
  • Home
  • 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 4036594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:14:32+00:00 2026-05-20T12:14:32+00:00

Hey, I’m having a strange issue. I’m wondering if anyone can help me make

  • 0

Hey, I’m having a strange issue. I’m wondering if anyone can help me make sense of it. I’ve got a text field, and a date picker that can be popped up overtop of the text field at the push of a button. When the date picker shows up, I make the text field below it uneditable or selectable, and when the date picker vanishes, I make it selectable again. The problem I’m having is that even though I’m calling setSelectable:NO, the, text field still shows the selection cursor when I mouse over it (although I can’t actually select anything in it).

Here’s the kicker though, if I throw a break point into the button code and wait a second or so, then once I hit continue, the text field is properly unselectable as I would expect showing the correct cursor.

Here is my button code. Anyone have any ideas?

- (IBAction) clicked:(id)sender
{
    if([datePickerView isHidden] == NO)
    {
        [summaryTextArea setEnabled:YES];
        [summaryTextArea setEditable:YES];
        [summaryTextArea setSelectable:YES];
        [datePickerView setHidden:YES];
    }
    else
    {
        [summaryTextArea setEnabled:NO];
        [summaryTextArea setEditable:NO];
        [summaryTextArea setSelectable:NO];
        [datePickerView setHidden:NO];
    }
}

If anyone wants to see more of a code snippet, please let me know and I can probably work together a small demo project. Thanks!

Edit:

Here is a simple test app I whipped up. Hopefully it’s helpful. http://dl.dropbox.com/u/917639/ExampleSelectable.zip

  • 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-05-20T12:14:33+00:00Added an answer on May 20, 2026 at 12:14 pm

    I fixed it… sort of. It’s working at least, seems like a bit of a hack though. I simply paired the following calls in my click handler

    [summaryTextArea addCursorRect:summaryTextArea.bounds cursor:[NSCursor IBeamCursor]]; 
    [summaryTextArea removeCursorRect:summaryTextArea.bounds cursor:[NSCursor IBeamCursor]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey I can't figure out an error I got. I had my App working
Hey everyone I am a newbie and would love some help. I got the
Hey I was wondering if it was at all possible in VHDL to AND
Hey trying to get a validation check working on a boolean field called 'activated'.
Hey I was wondering if there was a specific query that I could enter
Hey could someone help me to test if a string matches 3 double digit
Hey guys I was wondering if there is a way to get a certain
hey guys how to make these php html links codes possible. i have tried
Hey how can I clone the table named teamselectiontable with just the table rows
Hey I need a little help with unsigned char bit access. I need 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.