New topic: 

Trouble Setting Mac type/Creator codes

<http://forums.realsoftware.com/viewtopic.php?t=36379>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        GordonD3          Post subject: Trouble Setting Mac type/Creator 
codesPosted: Fri Nov 19, 2010 3:33 pm                         
Joined: Thu Nov 08, 2007 3:39 pm
Posts: 26                In my application I am attempting to set the MacType 
and MacCreator fields of a created file. I can see the fields change to the 
proper codes when single stepping through the code. However after closing the 
file and then reopening the file, the Type and Creator fields of the selected 
folder item are 0x00000000. Any thoughts on what might be wrong? I'm running 
OSX 10.6.4.

Code:  f = GetSaveFolderItem("AttendanceDBFileTypes", "Attendance.adb")
  if (f <> nil) then
  AttendanceDB = New REALSQLDatabase
  AttendanceDB.DatabaseFile = f
  if (AttendanceDB.CreateDatabaseFile = True) then
  AttendanceDB.SQLExecute("create table Attendance(FirstName varchar, LastName 
varchar)")
  #if TargetMacOS
    f.MacType = "adb "
    f.MacCreator = "CADB"
  #endif
  .
  .
  .
     
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to