1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

can i put NSTextview in the Iphone

Discussion in 'iPhone/iPad Programming' started by arjit, Feb 20, 2009.

  1. macrumors newbie

    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


    Staff Member

    You cannot use NSTextView on the iPhone.
  3. macrumors newbie

    so is there any way i can put the NSCursor on the iPhone ?
  4. macrumors newbie

    or letting the curser blink while the keyboard is not there .....
  5. Moderator


    Staff Member

    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. macrumors newbie

    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


    Staff Member

    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. macrumors newbie

    u mean drawing the cursor by Opengl on the UItextview ??
    how do i proceed with that ..... ?
  9. Moderator


    Staff Member

    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. macrumors newbie

    thanks a lot .... :):) it was nice talking to u ....
  11. macrumors newbie

    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. macrumors newbie

    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


    Staff Member

    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


    Staff Member

    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. macrumors newbie

    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