• 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
Using PBXSourceFileEditor in an XCode plug-in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using PBXSourceFileEditor in an XCode plug-in


  • Subject: Using PBXSourceFileEditor in an XCode plug-in
  • From: Joe Osborn <email@hidden>
  • Date: Sun, 14 Dec 2003 16:22:30 -0600

Hello, everyone.

I'm writing a plug-in for XCode(mainly using ObjC, but using AppleScript to get into XCode in the first place[unless there is an approved way to write a plug-in using no AppleScript at all; I don't mind the language, but I don't feel comfortable enough with AppleScript to be using it...]) that will present a 'class browser' in the Smalltalk style for Objective-C classes. I have a working first version, but it has a few problems:

1. It is very slow.
2. It is rather dumb(it doesn't propagate the necessary notifications, etc to the PBXProjectIndex that it should rebuild its index of an edited file).
3. It does not use the 'normal' PBXSourceFileEditor text view, which means no breakpoints, no syntax coloring, no line numbers, no indenting, no completion, no search, no nothing.


Problem 1 is my own fault and I'll fix that when I get to it, but I'm having a devil of a time figuring out how to use PBX's normal source code editing interface within my plug-in(which will, presumably, solve problem 2 as well). I'd really like to have the editor within my window, sort of like the Class Browser that already exists in XCode.

Any ideas? I tried to poke around using F-Script Anywhere, but it just crashed... I've been scraping by with class-dump, but I'm stuck now. Anyone have an idea?

(One more thing, an easy AppleScript question: How do I put the 'plug-ins' menu to the left of the 'window' menu in the menu bar[and then only if it's not already there]? Thanks in advance.)

__joe
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Using PBXSourceFileEditor in an XCode plug-in
      • From: Joe Osborn <email@hidden>
  • Prev by Date: Re: -fast for G4 + G5
  • Next by Date: Re: Using PBXSourceFileEditor in an XCode plug-in
  • Previous by thread: Re: -fast for G4 + G5
  • Next by thread: Re: Using PBXSourceFileEditor in an XCode plug-in
  • Index(es):
    • Date
    • Thread