can i put NSTextview in the Iphone

Discussion in 'iOS Programming' started by arjit, Feb 20, 2009.

  1. macrumors newbie

    Joined:
    Feb 20, 2009
    #1
    i have been trying to put NStextview into the Iphone any idea how ? ?
    acctually i want i was using UITextView but i dont want the keyboard but i want the cursor blinking so any help with that ? ?
    i was thinking to put the NStextview and thn put the NScursor will that work on iPhone ??

    any help ??
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  3. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #3
    so is there any way i can put the NSCursor on the iPhone ?
     
  4. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #4
    or letting the curser blink while the keyboard is not there .....
     
  5. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    No. Look it's really simple: if it's not in the SDK then you can't have it (unless you add it entirely with your own code).

    Why? It's an iPhone, not a Mac. The built in UI classes work they way they do for a reason: to follow the declared HIG. If your app works in a different way users will be confused at best, annoyed more likely.
     
  6. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #6
    like i m making a textview which on morse code touches entries the word ... so the user is touching the UItextfeild and i m able to interprate it but the curser is not there .... so how do i do that ..... ?? any idea .... :(:(
     
  7. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    You are trying to do something that is basically unsupported: use a different input method than the keyboard. I can only suggest subclassing UITextView and drawing a blinking cursor yourself...
     
  8. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #8
    u mean drawing the cursor by Opengl on the UItextview ??
    how do i proceed with that ..... ?
     
  9. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #9
    No, I meant using Quartz. Either way I'm not about to spend ages explaining it to you: drawing custom views is covered in the documentation: I suggest you read it.
     
  10. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #10
    thanks a lot .... :):) it was nice talking to u ....
     
  11. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #11
    Become first responder not responding

    I have subclassed the UItextview to implement the touch event on it.

    but now the object of the subclass is not responding becomeFirstResponder any idea why ???
     
  12. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #12
    morse code application

    I an making an application where the input mode is morse code (which is handeled by touch events )so when i am making a UItextview the keyboard pops up i have disbaled the keyboard to handle the touch events but lost the cursor any help how to remove just the key board and retain the cursor ..... becoz i want the user input to be touch so any idea how should i proceed ... ??:(:(
     
  13. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #13
    Why show a cursor when the user is not able to type text into that field? Or do you have them tapping their morse code on that textfield and then translating it to text to show in that field? I think a more detailed explanation of the UI and actions and targets would help us to better understand what you are trying to achieve. Perhaps even a screenshot?
     
  14. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #14
    This was my understanding of what the OP wanted: a huge text field on screen with a cursor. The user can tap anywhere on the field and the morse taps are interpreted and the characters inserted at the insertion point in the text field.
     
  15. thread starter macrumors newbie

    Joined:
    Feb 20, 2009
    #15
    yaa exactly .... that is what i want the user is able to tap and touch and i am able to get those touches and respond with the text on the UItextview with the text and the cursor on it . any help how is it possible ?
     

Share This Page