Professional Web Applications Themes

Mac One-Liners - Mac Programming

More paragraphs, line breaks, and white space, please. I'd think a post of Mac One-Liners would be less enamoured of massive blocks of unbroken text....

  1. #1

    Default Re: Mac One-Liners

    More paragraphs, line breaks, and white space, please.

    I'd think a post of Mac One-Liners would be less enamoured of massive
    blocks of unbroken text.

    Jon H Guest

  2. #2

    Default Re: Mac One-Liners

    matt neuburg <matttidbits.com> wrote in message news:<20030815062927291-0700news.la.sbcglobal.net>...
    > In <ef37f531.0308150015.745b076cposting.google.com > Eric Pepke wrote:
    > > To shrink most controls use [[control cell] setControlSize:
    > > NSMallControlSize].
    >
    > Oh great. I tried this and now my control is as big as a Mall! m.

    heh heh. Fixed, thanks
    Eric Pepke Guest

  3. #3

    Default Re: Mac One-Liners

    Jon H <j_hendryix.netcom.com> wrote in message news:<0001HW.BB632F40002EA366F0284600news.snet.sb cglobal.net>...
    > More paragraphs, line breaks, and white space, please.
    >
    > I'd think a post of Mac One-Liners would be less enamoured of massive
    > blocks of unbroken text.
    I don't see what you're talking about.

    There are four actual paragraphs, and the longest is eight lines. The rest
    consists entirely of one-liners.

    Do you want more separate categories, or what?
    Eric Pepke Guest

  4. #4

    Default Re: Mac One-Liners

    On Sat, 16 Aug 2003 8:50:25 -0400, Eric Pepke wrote
    (in message <ef37f531.0308160450.3d62540eposting.google.com>) :
    > Jon H <j_hendryix.netcom.com> wrote in message
    > news:<0001HW.BB632F40002EA366F0284600news.snet.sb cglobal.net>...
    >> More paragraphs, line breaks, and white space, please.
    >>
    >> I'd think a post of Mac One-Liners would be less enamoured of massive
    >> blocks of unbroken text.
    >
    > I don't see what you're talking about.
    >
    > There are four actual paragraphs, and the longest is eight lines. The rest
    > consists entirely of one-liners.
    >
    > Do you want more separate categories, or what?
    Maybe it's my newsreader (Hogwasher).

    I'm seeing all the 'one liners' in a group munged into one
    paragraph which is definitely not easily scanned:

    Programming Cocoa To put an image in a table column use [column
    setDataCell:[NSImageCell alloc]]. To draw sharp single-pixel
    NSBezierCurves add 0.5 to x and y. To get a Finder icon use [[NSWorkspace
    sharedWorkspace] iconForFile:path]. To put something at the right of the
    menu bar use an NSStatusBar. To scroll programmatically use [[aScrollView
    contentView] scrollToPoint:p]. [outlineView reloadItem:nil] doesn't work
    for root; use reloadData instead. To use Carbon file functions make a
    file:// URL and use CFURLGetFSRef. To make a text field scroll, not wrap
    Use [[textField cell] setScrollable:YES]. To shrink most controls use
    [[control cell] setControlSize:NSMallControlSize]. NSScroller, NSTabView,
    and NSProgressIndicator have their own setControlSize. To do many file
    system functions like chdir, chmod, etc. use NSFileManager. A file ending
    in ".mm" can contain Objective C and C++ code. Use ".mm" instead of ".M"
    as Project Builder may not distinguish case. You can use "self" on the
    left side of an assignment. Always use the return value of an initializer;
    it may be a different value. The GUI API isn't all thread-safe; only the
    main thread should use it. An NSQuickDrawView may be much faster than
    using standard views. Apple suggests the URL file:// form be preferred
    over file names. NSBundle's localizedStringForKey returns the key if the
    value is not found. An OpenGL view does not scroll like a normal NSView in
    an NSScrollView. If you can't find a feature in a control, look in its
    cell. String attributes of nil uses 12 point Helvetica. Cocoa programmers
    need to know Core Foundation, even if its docs say "Carbon." To make all
    objects of an array do something, use -makeObjectsPerformSelector. To
    avoid fencepost errors, use NSEnumerator instead of -objectAtIndex:. To
    get process info, use NSTask. If you -retain an object, you have to
    -release or -autorelease it. If you create an object with +alloc or -copy,
    -release or -autorelease it. An error message on the third parameter means
    the first parameter of a method. To get the current user, use NSUserName()
    or NSFullUserName(). [NSApplication sharedApplication] starts the window
    server and sets NSApp. Get an NSString from wchar_t*s by [NSString
    localizedStringWithFormat:"S", s]. You don't need to declare a method if
    it is declared by a superclass. Objects loaded from .nib files often
    bypass init methods.
    "s" is not really a CFString. Use [NSString stringWithString:"s"]

    --
    Jonathan Hendry
    Cheshire, CT
    SCJP Sun-Certified Java Programmer (1.4.1)

    Jon H Guest

  5. #5

    Default Re: Mac One-Liners

    On Sat, 16 Aug 2003, Jon H wrote:
    > On Sat, 16 Aug 2003 8:50:25 -0400, Eric Pepke wrote
    > (in message <ef37f531.0308160450.3d62540eposting.google.com>) :
    >
    > > Jon H <j_hendryix.netcom.com> wrote in message
    > > news:<0001HW.BB632F40002EA366F0284600news.snet.sb cglobal.net>...
    > >> More paragraphs, line breaks, and white space, please.
    > >>
    > >> I'd think a post of Mac One-Liners would be less enamoured of massive
    > >> blocks of unbroken text.
    > >
    > > I don't see what you're talking about.
    > >
    > > There are four actual paragraphs, and the longest is eight lines. The rest
    > > consists entirely of one-liners.
    > >
    > > Do you want more separate categories, or what?
    >
    > Maybe it's my newsreader (Hogwasher).
    >
    > I'm seeing all the 'one liners' in a group munged into one
    > paragraph which is definitely not easily scanned:
    [snip]

    I see them one to a line.

    I assume Hogwasher is thinking of this as a paragraph. This is actually a
    pretty reasonable thing to do, as usenet paragraphs are usually
    hard-wrapped, and they can't be automatically re-flowed unless they're
    somehow automatically removed.

    You may be able to tell your news reader not to do that. I use
    MT-NewsWatcher which, as far as I can tell, makes no effort to re-flow
    paragraphs, and that works fine for me.

    I'm not sure if the one-liners could be posted in some way to avoid this
    problem, other than putting two line-breaks between each tip.

    --
    "From now on, we live in a world where man has walked on the moon.
    And it's not a miracle, we just decided to go." -- Jim Lovell

    Mike Ash - <http://www.mikeash.com/>, <mailto:mailmikeash.com>

    Michael J Ash Guest

  6. #6

    Default Re: Mac One-Liners

    In article <Pine.OSF.3.96.1030816132050.28506B-100000alpha3.csd.uwm.edu>,
    Michael J Ash <mikeashcsd.uwm.edu> wrote:
    > I'm not sure if the one-liners could be posted in some way to avoid this
    > problem, other than putting two line-breaks between each tip.
    HTML :-)

    meeroh
    Miro Jurisic Guest

  7. #7

    Default Re: Mac One-Liners

    In article <macdev-1E3FC1.19225116082003senator-bedfellow.mit.edu>,
    Miro Jurisic <macdevmeeroh.org> wrote:
    > In article <Pine.OSF.3.96.1030816132050.28506B-100000alpha3.csd.uwm.edu>,
    > Michael J Ash <mikeashcsd.uwm.edu> wrote:
    >
    > > I'm not sure if the one-liners could be posted in some way to avoid this
    > > problem, other than putting two line-breaks between each tip.
    >
    > HTML :-)
    I'm not sure whether I should laugh or cry.
    Michael Ash Guest

Similar Threads

  1. One-liners resource?
    By Mills Thomas (app1tam) in forum Ruby
    Replies: 1
    Last Post: September 16th, 04:04 PM
  2. Piped input to one-liners being truncated
    By tnitzke in forum PERL Miscellaneous
    Replies: 0
    Last Post: August 9th, 09:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139