• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to actually edit source files in Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to actually edit source files in Xcode?


  • Subject: Re: how to actually edit source files in Xcode?
  • From: Brian Syme <email@hidden>
  • Date: Wed, 23 Jan 2013 12:11:49 -0800

Xcode has a pretty complex and fiddly interface even when you can see it. Navigating your way around it with voiceover is tough, but I assume you're a lot more comfortable with voiceover than I am.

Do you have a good idea of the overall layout of the Xcode interface? Basically the Xcode window contains multiple panes. On the left you have the "Navigator" pane, in the center there's an "Editor" pane and on the right there's a "Utilities" pane.

Each pane has several modes it can be in. What you select in the left hand navigator pane can affect what's displayed in the central editor pane, and what you select in the central editor pane can affect what you see in the right hand utilities pane.

I think there are two reasons why you can't see the code for your view:
1. Navigating to the editor pane with voiceover is tricky.
2. There actually isn't any source code associated with the view yet.

I think you may be trapped in the left hand navigator pane. Try getting to the top of the navigator group (shift+control+option+up a few times) then using voiceover's regular navigation (i.e. just control+option and cursor keys) to find the editor pane.

Hopefully that gets you a bit further. As far as getting code associated with a view is concerned, basically you're going to create a new class (File+New+File menu options) that derives from NSView. Then you're going to use the Identity Inspector in the right hand utility pane to change its class from the default NSView to whatever your new class is called.

Like I say, this is all pretty fiddly when you can see all these modal UI changes happening, so I'm not surprised you've had a tough time figuring it out.

Maybe there's a guide to xcode for blind users on the web already?

Brian


On Wed, Jan 23, 2013 at 6:58 AM, Alex Hall <email@hidden> wrote:
Hello all,
I am pretty new to Xcode and Objective-c, so sorry that this is such a basic question: how do I get to the files I want or create new ones? I must also say that I am blind, relying on Voiceover (Apple's built-in screen reader), so keyboard commands or menu items are the only way I can access Xcode. Voiceover can move the mouse pointer to the object Voiceover is on, and then click or even drag (though dragging is sort of hit-or-miss) but that's all I can do with a mouse.

Anyway, what I want to do is play around with capturing keyboard input directly in my window. So I want to set my view as the first responder and then override the keyUp, and maybe some other, events used in NSResponder (from which NSView inherits). Here's the problem: I can't find the actual code where the NSView instance is instantiated. Actually, I can't find any code at all. I have a table inside the mainMenu.xib group (itself in the Source Code group), and this table has appDelegate and all my UI stuff, but I can't seem to show the code at all. Yes, I can go view and edit the files in Finder, but it seems like I should be able to edit code in Xcode... I realize my terms might be confusing, since I am coming at this only able to relate how Voiceover organizes and labels the different elements of the screen, so let me know if I am not making sense and I'll see what I can do to explain this differently. Thanks in advance for any help.


Have a great day,
Alex (msg sent from Mac Mini)
email@hidden




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: how to actually edit source files in Xcode?
      • From: Alex Hall <email@hidden>
References: 
 >how to actually edit source files in Xcode? (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Xcode 4 UI customizability curiosities
  • Next by Date: Whatever the problem was...
  • Previous by thread: how to actually edit source files in Xcode?
  • Next by thread: Re: how to actually edit source files in Xcode?
  • Index(es):
    • Date
    • Thread