Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!caen!zaphod.mps.ohio-state.edu!wuarchive!cec2!news
From: jyp@wucs1.wustl.edu (Jerome Yvon Plun)
Subject: out to do PBCatSearch based on type/creator
Message-ID: <1991Jun18.032741.24056@cec1.wustl.edu>
Keywords: PBCatSearch, Finder info
Sender: news@cec1.wustl.edu (USENET News System)
Organization: Washington University, St. Louis MO
Distribution: usa
Date: Tue, 18 Jun 91 03:27:41 GMT

I am trying to use PBCatSearch to find an application based on its type
('APPL') and creator.  I set ioSearchBits to fsSBFlFndrInfo, create an
appropriate Finder Info record to put in ioSearchInfo1.ioFlFndrInfo and
create another Finder Info record that I stuff with 0's except for the
fields fsType and fsCreator (both set to all 1's) to use as a mask with
ioSearchInfo2.ioFlFndrInfo.
But PBCatSearch seems to return with the first application it finds.

If I use the same setup but search based on the full name of the application,
PBCatSearch finds it correctly (and quickly too!).

Can someone clarify what Apple means by "using fields to hold masks that 
specify which bits are relevant" (last paragraph p 25-20)?

Thanks.  Jerome

Jerome Plun            []  Is it a crime to want something else?
jyp@wucs1.wustl.edu    []  Is it a crime to believe in something different?
Washington University  []  
St Louis, MO           []  "Smalltown England", New Model Army, Vengeance
