Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!claris!UUCP!peirce From: peirce@outpost.UUCP (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: Re: Publish & Subscribe Message-ID: Date: 25 Jun 91 17:45:10 GMT Reply-To: peirce@outpost.UUCP (Michael Peirce) Organization: Peirce Software Lines: 35 X-Mailer: uAccess - Mac Release: 1.5 In article <25648@well.sf.ca.us>, smoke@well.sf.ca.us (Nicholas Jackiw) writes: > In article <0B01FFFB.ijva0b@outpost.UUCP> peirce@outpost.UUCP (Michael Peirce) writes: > > > >My problem is that when I write out a published edition, I don't > >produce the automatic update I'd expect. The data is out there - if > >I do a "Get Edition Now" from the subscribers they get the new edition > >data. > >Any ideas would be appreciated. Thanks. > > Are you updating the mdDate of the section record before writing the > edition data? If not, the Edition Manager package will see that the > newly written edition doesn't supercede the previously written one > (both dates are the same), and not send off update events. Why it > bothers to update the file in this case is beyond me--in one case, > it seems to believe you're making significant changes; in the other, > it refuses. At any rate, try sticking a > > GetDateTime(modifiedNow); > theEdition.SectionH^^.mdDate := modifiedNow; > > before you OpenNewEdition(), and see if this changes anything. If so, > fix the bugs in your edition time-stamping. (Or implement edition > time-stamping, if you've overlooked it.) That's it! Thanks! I didn't notice anything about having to set the modification date in IM VI. Once I put this in it all works like a charm. -- michael, slowly learning all this new System 7 stuff... -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE