NSRoundUpToMultipleOfPageSize broken?

  • I know there's other macros to do this but I was just trying out some
    Foundation utils and found NSRoundUpToMultipleOfPageSize always
    returns 0 (same with round down version).  I saw no information
    regarding this as depreciated or obsolete, so is this a bug or is it
    generally assumed the Foundation utility functions are not to be
    relied upon?
  • It's a bug!  Please file a bug.  Seems to have been around since
    before Mac OS X 10.0.

    Workaround is to call NSPageSize() first.

    Shows you how often other people are using these functions...

    Chris Kane
    Cocoa Frameworks, Apple

    On Mar 4, 2008, at 10:08 AM, mikevann wrote:
    > I know there's other macros to do this but I was just trying out
    > some Foundation utils and found NSRoundUpToMultipleOfPageSize always
    > returns 0 (same with round down version).  I saw no information
    > regarding this as depreciated or obsolete, so is this a bug or is it
    > generally assumed the Foundation utility functions are not to be
    > relied upon?
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
  • Ah cool thanks.  There's a lot of really good utilities in there, but
    they're kind of out of the way in the docs so not surprising few know
    they exist.  I'm just glad it's a bug and that these haven't been
    abandoned.  Filing report now.

    On Mar 4, 2008, at 7:47 PM, Chris Kane wrote:

    > It's a bug!  Please file a bug.  Seems to have been around since
    > before Mac OS X 10.0.
    >
    > Workaround is to call NSPageSize() first.
    >
    > Shows you how often other people are using these functions...
  • On 05.03.2008, at 03:52, mikevann wrote:

    > Ah cool thanks.  There's a lot of really good utilities in there,
    > but they're kind of out of the way in the docs so not surprising few
    > know they exist.  I'm just glad it's a bug and that these haven't
    > been abandoned.  Filing report now.
    >
    >
    > On Mar 4, 2008, at 7:47 PM, Chris Kane wrote:
    >
    >> It's a bug!  Please file a bug.  Seems to have been around since
    >> before Mac OS X 10.0.
    >>
    >> Workaround is to call NSPageSize() first.
    >>
    >> Shows you how often other people are using these functions...

    Well I never called NSRoundUpToMultipleOfPageSize but NSPageSize I use
    quite often. Not that you get the idea, that these functions are
    unused and should be deprecated soon :)

    Ciao
        Nat!
    ------------------------------------------------------
    Never let your wife prevent you from buying equipment.
    A house will not buy a synthesizer, but a synthesizer
    can buy a house. -- H. Zimmer
previous month march 2008 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today