Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-01

Xcode access to fpc documentation

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ken G. Brown

Is there a way to add the fpc documentation so that Xcode help can access it like the docsets?

In the MacOS fpc 2.2.2 download, in the MainUnit.pas of the FPC-C-C++CarbonApplication template for new projects, there is a typo causing it to not compile. The ) after $endif should be }.

{$if not defined(VER2_2_0) and not defined(VER2_0_4)}
	MacOSAll,
{$else}
  FPCMacOSAll,
{$endif)
	CSupport;

As well, the way the code is commented out causes both MacOSAll and FPCMacOSAll to be used. Are they both necessary?

Where are MacOSAll and FPCMacOSAll supposed to be located? At the moment Spotlight does not find them for me.

Thx for any tips,
Ken G. Brown

Reply by email

Jonas Maebe
to Ken G. Brown
Ken G. Brown wrote
Is there a way to add the fpc documentation so that Xcode help can access it like the docsets?

Not that I know.

In the MacOS fpc 2.2.2 download, in the MainUnit.pas of the FPC-C-C+ +CarbonApplication template for new projects, there is a typo causing it to not compile. The ) after $endif should be }.

Thanks for reporting this, I'm not sure how I missed that. It's still there in 2.2.4rc1, I'll fix it for the final 2.2.4 release.

As well, the way the code is commented out causes both MacOSAll and FPCMacOSAll to be used. Are they both necessary?

No, only MacOSAll is. See http://wiki.freepascal.org/User_Changes_2.2.2#FPCMacOSAll_unit for more information.

Where are MacOSAll and FPCMacOSAll supposed to be located? At the moment Spotlight does not find them for me.

The unit is located at /usr/local/lib/fpc/2.2.2/units/i386-darwin/ univint/MacOSAll.ppu (or powerpc-darwin in case you're on ppc). The reason that you didn't find it with Spotlight, is that it does not show files under /usr by default (because you seldom want to find files there, as only command line applications put things there). You can either use the command line interface to spotlight (mdfind MacOSAll), or change the settings of the GUI one to also include "system files").

That said, this unit (just like all others) is only distributed in compiled form with the installer, so it's not going to be very useful to you. If you want the sources, you can download them here: http://www.freepascal.org/down/source/sources.var

Jonas

Reply by email

Ken G. Brown

Aha! That's why the unix find of FPCMacOSAll did not find anything either! It's not there anymore. That clears up a couple mysteries for me.
Thx,
Ken G. Brown

apparently wrote 46 lines
Date: Tue, 27 Jan 2009 09:42:00 +0200 From: Jonas Maebe Subject: Re: [fpc-pascal] Xcode access to fpc documentation To: FPC-Pascal users discussions Message-ID: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On 27 Jan 2009, at 00:55, Ken G. Brown wrote: > Is there a way to add the fpc documentation so that Xcode help can > access it like the docsets? Not that I know. > In the MacOS fpc 2.2.2 download, in the MainUnit.pas of the FPC-C-C+ > +CarbonApplication template for new projects, there is a typo > causing it to not compile. > The ) after $endif should be }. Thanks for reporting this, I'm not sure how I missed that. It's still there in 2.2.4rc1, I'll fix it for the final 2.2.4 release. > As well, the way the code is commented out causes both MacOSAll and > FPCMacOSAll to be used. Are they both necessary? No, only MacOSAll is. See http://wiki.freepascal.org/User_Changes_2.2.2#FPCMacOSAll_unit for more information. > Where are MacOSAll and FPCMacOSAll supposed to be located? At the > moment Spotlight does not find them for me. The unit is located at /usr/local/lib/fpc/2.2.2/units/i386-darwin/ univint/MacOSAll.ppu (or powerpc-darwin in case you're on ppc). The reason that you didn't find it with Spotlight, is that it does not show files under /usr by default (because you seldom want to find files there, as only command line applications put things there). You can either use the command line interface to spotlight (mdfind MacOSAll), or change the settings of the GUI one to also include "system files"). That said, this unit (just like all others) is only distributed in compiled form with the installer, so it's not going to be very useful to you. If you want the sources, you can download them here: http://www.freepascal.org/down/source/sources.var Jonas

Reply by email