Send Xcode-users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/xcode-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xcode-users digest..."
Today's Topics:
1. Best approach to adding a Spotlight importer (David Dunham)
2. Re: Ref Lib Dev Docs broken! (Andrea "XFox" Govoni)
3. Confusing runtime link error (Darkshadow)
4. Re: Confusing runtime link error (Chris Espinosa)
5. Re: Confusing runtime link error (Darkshadow)
6. Simple Question (Josh Osborne)
7. Re: Simple Question (Alexander von Below)
8. Re: Simple Question (j o a r)
9. PBXOutput=ReplaceSelection question (Cem Karan)
----------------------------------------------------------------------
Message: 1
Date: Sun, 9 Apr 2006 13:37:19 -0700
From: David Dunham <email@hidden>
Subject: Best approach to adding a Spotlight importer
To: XCode Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
I've got a document-creating application, and want to have its
documents indexable. I think the easiest approach will be to share
the document-reading code with the Spotlight importer.
But I'm less clear on how to set this up with Xcode. Do I add a
target to my existing project? Presumably a loadable bundle?
One issue I see is that both the app and the .mdimporter have an
Info.plist, so they're not going to be able to coexist in the same
folder.
On the other hand, I guess I want to distribute the .mdimporter
inside the application bundle, like OmniOutliner.
I guess everything's in CVS so I could experiment, but perhaps
someone's had the same issue and solved it.
David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
Efficiency is intelligent laziness.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3601 bytes
Desc: not available
Url : http://lists.apple.com/pipermail/xcode-users/attachments/
20060409/dc81e0b9/smime.bin
------------------------------
Message: 2
Date: Mon, 10 Apr 2006 00:19:45 +0200
From: "Andrea \"XFox\" Govoni" <email@hidden>
Subject: Re: Ref Lib Dev Docs broken!
To: Paul Archibald <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
Paul Archibald wrote:
Today I upgraded my XCode (2.2.1) with the newest DevDVD (o4/06) and
downloaded and installed the latest Developer documentation update
(mar06_adc_reflib_update.dmg, as "recommended" in the
preferences/documentation panel). Yesterday, I could F1 my way to
a Java
class or method perfectly. Now, all I can get to is the Ref Lib's
TOC. I
fact, Even if I enter a search string in the API search box
nothing happens.
How did I break this nicely working system, and how do I fix it?
You didn't specify if before the updates you could find the Java
1.5 or
1.4 documentation of a class or method.
However, you could try to install the April reference library update,
available now on the ADC site (or simply check through the Xcode's
documentation panel), it contains an option to run a script to index
Java symbols for use in Xcode.
--
Andrea "XFox" Govoni
AIM/iChat/ICQ: email@hidden
Yahoo! ID: xfox82
Skype Name: draykan
PGP
KeyID: 0x212E69C1
Fingerprint: FBE1 CA7D 34BE 4A53 9639 5C36 B7A0 605F 212E 69C1
------------------------------
Message: 3
Date: Sun, 9 Apr 2006 23:11:56 -0400
From: Darkshadow <email@hidden>
Subject: Confusing runtime link error
To: Apple Lists <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
I released a new version of one of my apps today, and have received a
crash report that is just confusing the heck out of me. I'm hoping
someone here may have an idea of what's going on.
Apparently, my app is trying to link against the AE framework (one of
the subframeworks in the ApplicationServices framework) on his
system. I haven't linked against it, nor am I using any of those
functions in the app.
Here's the crash report:
**********
Host Name: adriens-imac-g5
Date/Time: 2006-04-09 19:24:51.823 +0100
OS Version: 10.4.6 (Build 8I127)
Report Version: 4
Command: Picture Switcher
Path: /Applications/Picture Switcher.app/Contents/MacOS/Picture
Switcher
Parent: WindowServer [64]
Version: 1.1 (1.1)
PID: 598
Thread: Unknown
Link (dyld) error:
image not found /System/Library/Frameworks/
ApplicationServices.framework/Frameworks/AE.framework/AE
Here's the frameworks I'm actually linked against:
$ otool -L /Applications/Picture\ Switcher.app/Contents/MacOS/
Picture\ Switcher
/Applications/Picture Switcher.app/Contents/MacOS/Picture Switcher:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 11.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
(compatibility version 1.0.0, current version 275.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.1.3)
So I'm not entirely sure why it's trying to link against the AE
framework. I do realize that it may be indirectly loaded by the
Cocoa framework, but still...
I tried weak linking against the ApplicationServices framework and
had him try that, but that didn't work, either. I didn't
particularly think that would work, but it was worth a shot.
It gets even stranger. I asked him to see if the AE framework was
present on his machine. Apparently, it is. I gave him a way to
check with either the Terminal or the Finder, whichever he was most
comfortable with. He actually did both. Here's the outcome:
$ ls -l /System/Library/Frameworks/ApplicationServices.framework/
Frameworks/
total 0
drwxr-xr-x 5 root wheel 170 Mar 28 2005 AE.framework
drwxr-xr-x 6 root wheel 204 Mar 28 2005 ATS.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 ColorSync.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 CoreGraphics.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 CoreText.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 FindByContent.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 HIServices.framework
drwxr-xr-x 5 root wheel 170 Feb 15 03:21 ImageIO.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 LangAnalysis.framework
drwxr-xr-x 6 root wheel 204 Mar 28 2005 LaunchServices.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 PrintCore.framework
drwxr-xr-x 5 root wheel 170 Feb 15 03:21 QD.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005
SpeechSynthesis.framework
$ ls -l /System/Library/Frameworks/ApplicationServices.framework/
Frameworks/AE.framework
total 16
lrwxr-xr-x 1 root wheel 19 Oct 2 2005 AE -> Versions/
Current/AE
lrwxr-xr-x 1 root wheel 26 Oct 2 2005 Resources -> Versions/
Current/Resources
drwxr-xr-x 4 root wheel 136 Mar 28 2005 Versions
...and from his look with the Finder (my original statements are the
double quoted ones below):
Tell me if AE.framework is there,
YES
and if it is, open that up and tell me if an alias named AE is
there.
YES, "exec" name AE is Alias
Then I opened alias origin:
"Going to Original AE from alias: AE.framework -> Versions -> A ->
AE -> exec -
Unix Executable File
340 KB on disk
Created and Modified
03/04/2006
[which is British usage for 3rd April 2006
So it really looks like there's something strange going on here. The
framework appears to be there, yet it can't be found by dyld and
loaded.
Just as a background, this is a universal binary, with both ppc and
i386 being built against the 10.4u SDK. If anyone wants more info on
the build settings I'm using, let me know.
There was someone else that commented on the MacUpdate site that he
couldn't get it to load on his G5, either. I'm fairly certain it's
not the same person. Whoever it was didn't send me a crash report,
so I can't say if it's the same problem. I just now received another
email saying that it won't load on another user's iMac G5.
Has anyone come across anything like this before?
If anyone has a G5 out there and would like to test it out (I don't
have access to one myself), you can download it at <http://
homepage.mac.com/darkshadow02/picswitch.dmg> (450K). Small app that
puts up a status menu you can use to switch the desktop picture.
Darkshadow
(aka Michael Nickerson)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
Url : http://lists.apple.com/pipermail/xcode-users/attachments/
20060409/f2c9a105/smime.bin
------------------------------
Message: 4
Date: Sun, 9 Apr 2006 21:51:38 -0700
From: Chris Espinosa <email@hidden>
Subject: Re: Confusing runtime link error
To: Darkshadow <email@hidden>
Cc: Apple Lists <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
On Apr 9, 2006, at 8:11 PM, Darkshadow wrote:
Created and Modified
03/04/2006
[which is British usage for 3rd April 2006
So it really looks like there's something strange going on here.
The framework appears to be there, yet it can't be found by dyld
and loaded.
Note above that the date of the AE.framework package is 28 March
2005, yet the executable mod date is 3 April 2006. That isn't good.
Nothing should be modifying system frameworks.
You are right in that it is Cocoa bringing in all of
ApplicationServices, including AE. The first thing your application
sees when launched from the Finder is an 'oapp' AppleEvent, so it
needs the AE framework to handle it.
My guess is that somehow (installation of some other package?) the AE
framework, and who knows what else, was modified/corrupted. I would
doubt that any new apps will launch on his system if this is the
case, and I recommend a reinstall from system software CDs.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/
20060409/9a50e432/attachment.html
------------------------------
Message: 5
Date: Mon, 10 Apr 2006 02:18:45 -0400
From: Darkshadow <email@hidden>
Subject: Re: Confusing runtime link error
To: Chris Espinosa <email@hidden>
Cc: Apple Lists <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Skipped content of type multipart/alternative-------------- next
part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
Url : http://lists.apple.com/pipermail/xcode-users/attachments/
20060410/7851a8c8/smime.bin
------------------------------
Message: 6
Date: Mon, 10 Apr 2006 00:48:57 -0700
From: Josh Osborne <email@hidden>
Subject: Simple Question
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
I'm just learning XCode and I am having a hard time trying to figure
out how to permanently change __MyCompanyName__ in newly created
files to be a company name. Where is XCode pulling these values
from? I thought that maybe it was pulling it from the "Me" contact
in Address Book but that did not work or I have an option in Address
Book set wrong.
--
Thanks,
Josh Osborne - email@hidden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/
20060410/1252e788/attachment.html
------------------------------
Message: 7
Date: Mon, 10 Apr 2006 09:57:14 +0200
From: Alexander von Below <email@hidden>
Subject: Re: Simple Question
To: Josh Osborne <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Searching the archives or google will quickly lead you to one of the
following answers:
1)
Xcode -> "Help" -> "Show Expert Preferences Notes"
2)
Open the Xcode preferences file (~/Library/Preferences/
com.apple.Xcode.plist) and edit the dictionary associated with the
key PBXCustomTemplateMacroDefinitions (create one if it does not
exist, as child of the root node), edit or add the key
ORGANIZATIONNAME
3)
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions
'{ "ORGANIZATIONNAME" = "My Company";}'
Alex
On 10.04.2006, at 09:48, Josh Osborne wrote:
I'm just learning XCode and I am having a hard time trying to
figure out how to permanently change __MyCompanyName__ in newly
created files to be a company name. Where is XCode pulling these
values from? I thought that maybe it was pulling it from the "Me"
contact in Address Book but that did not work or I have an option
in Address Book set wrong.
--
Thanks,
Josh Osborne - email@hidden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/
20060410/8a67a396/attachment.html
------------------------------
Message: 8
Date: Mon, 10 Apr 2006 09:57:58 +0200
From: j o a r <email@hidden>
Subject: Re: Simple Question
To: Josh Osborne <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
On 10 apr 2006, at 09.48, Josh Osborne wrote:
I'm just learning XCode and I am having a hard time trying to
figure out how to permanently change __MyCompanyName__ in newly
created files to be a company name. Where is XCode pulling these
values from? I thought that maybe it was pulling it from the "Me"
contact in Address Book but that did not work or I have an option
in Address Book set wrong.
What do you find if you search for "__MyCompanyName__" on Google?
j o a r
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2380 bytes
Desc: not available
Url : http://lists.apple.com/pipermail/xcode-users/attachments/
20060410/b64bb3a6/smime.bin
------------------------------
Message: 9
Date: Mon, 10 Apr 2006 09:11:41 -0400
From: Cem Karan <email@hidden>
Subject: PBXOutput=ReplaceSelection question
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed
I've got a simple python user script that I'm having trouble getting
to behave exactly as I want. Here is the script:
---------------------------- Start ------------------
#! /usr/bin/python
# -*- coding: utf-8 -*-
# -- PB User Script Info --
# %%%{PBXName=Wrap Selection}%%%
# %%%{PBXInput=Selection}%%%
# %%%{PBXOutput=ReplaceSelection}%%%
# %%%{PBXKeyEquivalent=}%%%
# That is the F6 function key above; apologies if it
# gets messed up in the mailing.
import textwrap
import re
whitespacePatternMatcher = re.compile(r"[\s]*")
stringToWrap = """%%%{PBXSelectedText}%%%"""
whitespace = whitespacePatternMatcher.match(stringToWrap).group()
myWrapper = textwrap.TextWrapper()
myWrapper.initial_indent = ""
myWrapper.subsequent_indent = whitespace
myWrapper.width = 80
myWrapper.fix_sentence_endings = True
outputString = myWrapper.fill(stringToWrap)
print outputString,
---------------------------- End --------------------
The problem is that when I replace the text, I always end up with an
extra newline at the end. I can't tell if this is because XCode is
throwing a newline in when it shouldn't, or if its a script problem.
When I try to remove the last character from the wrapped string
before printing, I end up missing characters rather than remove the
newline, so I'm leaning towards XCode doing something funky, but I'd
like either confirmation, or a note saying how to fix this before I
file a bug.
Thanks,
Cem Karan
------------------------------
_______________________________________________
Xcode-users mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/xcode-users
End of Xcode-users Digest, Vol 3, Issue 270
*******************************************