home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!nigel.msen.com!yale.edu!qt.cs.utexas.edu!news.Brown.EDU!noc.near.net!news.bbn.com!news.bbn.com!news
- From: aking@BBN.COM (Allen King)
- Newsgroups: comp.sys.next.programmer
- Subject: 3.0 great, but return type of -data?
- Date: 15 Sep 1992 13:37:08 GMT
- Organization: Bolt Beranek and Newman Inc., Cambridge MA
- Lines: 35
- Distribution: world
- Message-ID: <lbbpo4INNqrv@news.bbn.com>
- Reply-To: aking@BBN.COM (Allen King)
- NNTP-Posting-Host: bbn.com
-
- Love that 3.0!!!. Integration of gdb and edit is a big improvement
- over 2.1. One thing that pleased me is that if I insert lines in a
- source I'm stepping around in, the step still gets the line numbers
- correct!
-
- I believe that the "data" method of NXdata.h and NXBitmapImageRep in 3.0
- together break the rule that methods with the same name must have the same
- return value. The compiler says:
-
- Spectrogram.m:181: warning: multiple declarations for method `data'
- /NextDeveloper/Headers/machkit/NXData.h:23:
- using `-(void *)data'
- /NextDeveloper/Headers/appkit/NXBitmapImageRep.h:53:
- also found `-(char unsigned *)data'
-
- The documentation of each agrees with its respective header files. What's
- the scoup?
-
- Do others find the same thing? (perhaps my upgrade failed)
- Is this also true on 2.1 (but now the compiler checks more) ?
- What's the cleanest workaround? (my take is to change
- NXBitmapImageRep.h)
-
-
- Allen King
-
- P.S.:
- The program which does this does two non-standard things, neither of which
- "should" cause a problem:
- 1. The program uses 2.1 optimization of importing just those specific
- include files that are needed (rather than using appkit/appkit.h).
- 2. The program uses the MusicKit, with header files retained from 2.1.
-
-
-
-