• 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: Warning when using NSSplitView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning when using NSSplitView


  • Subject: Re: Warning when using NSSplitView
  • From: j o a r <email@hidden>
  • Date: Sun, 4 Jan 2004 03:30:50 +0100

You need to include the type of the outlet somewhere to allow the
compiler to know what method you intended to use. As an alternative you
could have made a cast in the method call:

[(NSSplitView *)splitView setVertical:YES];

..but I prefer the way you already solved it - as you only need to do
it in one place (a golden rule in programming), and as it will also
give you some benefits when you're working in IB.

j o a r

On 2004-01-04, at 02.23, Oli Donald wrote:

> XCode seems to display warnings for header files in the c files. The
> two errors come from 'NSSplitView.h' (defines as BOOL) and
> NSSliderCell.h (defined there as int). I fixed it by changing the
> 'IBOutlet id' to an 'IBOutlet NSSplitView *'. Is this the only way to
> solve the problem?

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • WebView dealing with PHP
      • From: Oli Donald <email@hidden>
References: 
 >Re: Warning when using NSSplitView (From: Oli Donald <email@hidden>)

  • Prev by Date: Re: Warning when using NSSplitView
  • Next by Date: WebView dealing with PHP
  • Previous by thread: Re: Warning when using NSSplitView
  • Next by thread: WebView dealing with PHP
  • Index(es):
    • Date
    • Thread