• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie Question about the View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Question about the View


  • Subject: Re: Newbie Question about the View
  • From: email@hidden
  • Date: Wed, 16 May 2001 09:10:33 -0700

>Hi, I'm a novice in programming GUI application especially for MacOS.
>My question may sound somewhat silly but excuse me with your tolerance.
>Well.... My question lies in the building interface for text entering.

Well, I'm more of an "advanced newbie" and by no means an expert, but I
think I can handle these questions.

>1. How can I format the entering field in input level?
>i.e. in entering field, I want to arrange the characters with some
>rules, e.g. 5 letters and space, i.e. 55555 55555 55555.
>I want to handle this format in entering level, that is, when someone
>enters the character, they are displayed as above.
>I want to know what object I should use, and what code should I write.

It sounds like you want to subclass NSFormatter:

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSFormatter.html


>2. How can I build multidocumented application?
>i.e. I can handle multidocumented application with 1 window. But, I
>don't know how to build 2 window system. e.g. A is a main window, and A
>calls window B, a result window. How can I manage this? If I make 2
>windows in IB, and link from A to B... is that all? It didn't work...

This is pretty easy - much of the functionality is provided for you - if
you start from the Multi-Document Application template, and then subclass
NSDocument to handle the specific properties of your application's document
style.

Here is documentation of NSDocument:

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/NSDocument.html

You might also want to check out the Application Kit source projects in the
Developer folder. At least one of them uses the multi-document template
(TextEdit).


Hope this helps. I'm sure some of the brainier folks will fill in more
details, but I generally find I am able to get more from their responses if
I at least read the basic documentation first when it's available.


  • Follow-Ups:
    • Re: Newbie Question about the View
      • From: David P Henderson <email@hidden>
  • Prev by Date: EOF on Mac OS X - was Re: Cocoa CGI
  • Next by Date: Re: NSPopUpButton Limitation?
  • Previous by thread: Re: Newbie Question about the View
  • Next by thread: Re: Newbie Question about the View
  • Index(es):
    • Date
    • Thread