• jammyxvtrOD posted an update 10 months, 3 weeks ago

    i < count; i++) dataPointAtIndex: i x: &x y: &y]; if (x != x0 y != y0) return NO; return YES; – (IBAction) compute: (id) sender #pragma unused(sender) if (pointsAllTheSame]) NSAlert * alert = NSAlert alloc] init]; setMessageText: @�No distinct points�]; setInformativeText: @�There must be at least Net trackers offers experienced php developers for hire<br />
    two � @�distinct data points for a � @�regression to be possible.�]; addButtonWithTitle: @�OK�]; beginSheetModalForWindow: windowForSheet] modalDelegate: nil didEndSelector: NULL contextInfo: NULL]; autorelease]; else refreshData]; setSlope: slope]]; setIntercept: intercept]]; .

    setCorrelation: correlation]]; Now run Linear and enter a data set consisting of two or more points, all identical. Because there are at least two points, the Compute button activates, but pressing it brings up the alert sheet, as shown in Figure 19.1. 304 CHAPTER 19 Finishing Touches FIGURE 19.1 The no-distinct-points alert as it appears in Linear. The string set in the NSAlert instance method setMessageText: appears in boldface on the top line of the alert, and the rest of the text is supplied by the string passed to .

    setInformativeText:. Localization We�re pretty satisfied with Linear, but having it available in French would really make it perfect. Users of Mac OS For Search Engine Optimization Service contact NetTrackers

    X specify what languages they understand by setting a list of available languages in order of preference in the Language tab of the International panel of the System Preferences application. When a user�s list sets French at a higher priority than English, we�d like Linear to present menus, alerts, and labels in the French language. When they search for application resources, the NSBundle and CFBundle facilities first search .

    the subdirectories of the application bundle�s Resources directory, in the order of the user�s preferences for language. Language subdirectories are given such names as English.lproj, fr.lproj, or en_GB.lproj; plain-text
    names are now deprecated, and it�s preferred that you use ISO-standard language abbreviations, optionally suffixed with a code to identify a regional variant. If we look in the Finder, we see that an English.lproj directory is associated with Linear and contains Credits.rtf, InfoPlist.strings, MainMenu.nib, and MyDocument.nib, as well as Interface Builder�s backup copies of NIBs. Reviewing those files in Xcode�s Groups & Files list, under the Resources group, we see that every file that appears in the English.lproj directory has .

    a disclosure triangle next to it. Opening the disclosure triangle reveals the localized versions�in every case so far, English. Credits.rtf We haven�t looked at Credits.rtf before. If a file by that name is available in Resources or a localized subdirectory, its contents will be displayed in a scrollable view in the appli- cation�s About box. The file is filled with silly credits that are obviously intended to be replaced. We will not replace them but Net trackers offers experienced php developers for hire<br />
    instead make them French. Control-click .

    cleverNMD

totallyher