-finishLaunching): Move the set name code to finishLaunching, as
the image called NSApplicationIcon should stay the same all the time.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28741 72102866-910b-0410-8b05-ffd578937521
scroller directly into the subviews. Call tile to position all
subviews correctly.
Based on patch by Quentin Mathe <quentin.mathe@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28625 72102866-910b-0410-8b05-ffd578937521
* Source/NSSearchFieldCell.m (-encodeWithCoder:, -initWithCoder:):
Correct encoding/decoding of maximumRecents.
Based on patch by Quentin Mathe <quentin.mathe@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28623 72102866-910b-0410-8b05-ffd578937521
Patch by Douglas Simons <doug.simons@testplant.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28617 72102866-910b-0410-8b05-ffd578937521
image is not different from the vertical dimple for the default
theme. It's here so that it can be overriden by a theme, if
needed.
* Images/GNUmakefile: Add new image.
* Source/GSThemeDrawing.m: Modify code in cellForScrollerKnob
to use common_Dimple.tiff or common_DimpleH.tiff depending
on the orientation of the scroller.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28567 72102866-910b-0410-8b05-ffd578937521
This should be enough for Emacs to compile with GNUstep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28525 72102866-910b-0410-8b05-ffd578937521
for drawButtonCell:...
* Source/GSThemeDrawing.m: Added implementation for new method. The
purpose of the method is to allow the theme to override images with
native images which may be theme dependent.
* Source/NSButtonCell.m: Use the new method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28522 72102866-910b-0410-8b05-ffd578937521
log the exception, but don't rethrow it.
* Source/GSLayoutManager.m: return a zero length range in
-(NSRange)glyphRangeForCharacterRange:actualCharacterRange:
when charRange has a length and a location of 0.
Added by Gregory John Casamento <greg.casamento@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28521 72102866-910b-0410-8b05-ffd578937521
-drawTitleWithFrame:inView:): Remove specific drawing code, use
general code instead.
* Source/NSMenuItemCell.m (-drawingRectForBounds:): Add call to
calcSize.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28505 72102866-910b-0410-8b05-ffd578937521
this needs to be a 32 bit integer and on 64 bit systems long
uses 64 bits.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28501 72102866-910b-0410-8b05-ffd578937521
_post_frame_changes and _post_bounds_changes to YES by default.
Patch by Quentin Mathe <qmathe@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28465 72102866-910b-0410-8b05-ffd578937521
prevent a crash when the drawer is opened/closed and then the
window is then closed causing a double release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28457 72102866-910b-0410-8b05-ffd578937521
-encodeWithCoder:): Encode this class and not the concrete
one. Also call super encoding/decoding methods as they are
correct in base now.
* Source/GSTextStorage.m (-classForPortCoder, -encodeWithCoder:,
-replacementObjectForPortCoder:): Remove these methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28456 72102866-910b-0410-8b05-ffd578937521
key if the menu is not owned by a popup. This avoids an
assertion error when loading the resulting nib into InterfaceBuilder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28446 72102866-910b-0410-8b05-ffd578937521
more directly to allow the handling of attributed strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28445 72102866-910b-0410-8b05-ffd578937521
contents of the text storage by attempting to unarchive when the
unarchiver is keyed.
* Source/NSTextView.m: In initWithCoder: retrieve the contents
of the text storage for display in the text view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28443 72102866-910b-0410-8b05-ffd578937521
of NSTextContainer since it is causing a crash when editing a text
view's that was loaded from a nib file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28442 72102866-910b-0410-8b05-ffd578937521
add code to draw highlights for rounded buttons to give them a
better 3D look.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28421 72102866-910b-0410-8b05-ffd578937521
* Source/NSAlert.m: Change code to use hightlightWithLevel: method
in resetWindow method.
* Source/NSApplication.m: Stub out setAttachedSheet method.
* Source/NSWindow.m: Remove new ivar for next release and stub out
attachedSheet method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28415 72102866-910b-0410-8b05-ffd578937521
redundant logic for calling the "didEnd" method in the NSBeginSheet...
functions.
* Source/NSApplication.m: Add code to reset parent window in
beginSheet:... method. Also added check to make sure the
modalDelegate is not nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28411 72102866-910b-0410-8b05-ffd578937521
* Source/NSApplication.m: Added private category to add
setAttachedSheet: to NSWindow. Modified beginSheet:... method
to call the new method with the sheet that is associated with it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28410 72102866-910b-0410-8b05-ffd578937521
and container ivars in interface declaration. Removed uneeded
accessors for parentWindow and contentRect. Added check in
frameFromParentWindowFrame to check to see if parent is initialized
prior to using it. Removed NSBox in the init.. method since it
could cause issues with drawing. Added code to lighten the
color of the background of the sheet relative to the parent window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28409 72102866-910b-0410-8b05-ffd578937521
Attempt to resolve the memory issues when coding a text container.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28405 72102866-910b-0410-8b05-ffd578937521
-_print):
Try to handle not set print information more graceful.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28396 72102866-910b-0410-8b05-ffd578937521
Use scale 1.0 if none is given.
Patch by Georg Fleischmann <G.Fleischmann@vhf.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28394 72102866-910b-0410-8b05-ffd578937521
* Source/NSApplication.m: Change order in which setWindowParent:
and runModalForWindow: are called in beginSheet:... method.
* Source/NSDrawer.m: Remove notifications when drawer is closed
in dealloc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28392 72102866-910b-0410-8b05-ffd578937521
-_editNextEditableCellAfterRow:column:): Comment out the loop
around of the last change. This leads to wrong results, when the
table view isn't the only view in the window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28383 72102866-910b-0410-8b05-ffd578937521
views as needing display, even when the invalidated rectangle
didn't change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28382 72102866-910b-0410-8b05-ffd578937521
live moving for table columns if GSUseGhostResize is
set to NO.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28376 72102866-910b-0410-8b05-ffd578937521
* Source/NSSpeechSynthesizer.m: Implementation of
NSSpeechSynthesizer.
Patch by David Chisnall <theraven@sucs.org>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28327 72102866-910b-0410-8b05-ffd578937521
constants in the private method _extIconForApp:info:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28297 72102866-910b-0410-8b05-ffd578937521
for when using GNUstep decorations in resizeWindowStartingWithEvent:.
* Source/NSLayoutManager.m: Unarchive the text containers into an
array in initWithCoder:.
* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
* Source/NSTextView.m: Changes to include text container from nib
file into the nib loading process in initWithCoder:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28296 72102866-910b-0410-8b05-ffd578937521
Small rearangment of code.
Patch by Fred Morcos <fred.morcos@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28254 72102866-910b-0410-8b05-ffd578937521
above the window it's supposed to appear relative to. Change
to runModalForWindow:relativeToWindow:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28232 72102866-910b-0410-8b05-ffd578937521
don't pay attention to the hidden flag in nib loading.
* Source/NSTableView.m: if the table has a cornerview, don't
pay attention to the hidden flag in nib loading.
NOTE: In both instances it appears that Cocoa sets the hidden flag
when autohide is set to true. GNUstep handles this case differently,
so it's okay to ignore this flag when the scroller is in an
NSScrollView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28231 72102866-910b-0410-8b05-ffd578937521
the instance of the typesetter for that thread.
* Source/NSStringDrawing.m: Add locks to methods to prevent modification
of static variables by separate threads from causing the application
to get glyph generation errors.
NOTE: These changes based on suggestions/ideas from Doug
Simons <doug@riverrock.org>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28219 72102866-910b-0410-8b05-ffd578937521
from the nib correctly. Will come back and fix this issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28199 72102866-910b-0410-8b05-ffd578937521
and set the mask to the make height and width resizable when the
tab is selected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28197 72102866-910b-0410-8b05-ffd578937521
temporarily showing up above the window and not syncing with
window position.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28196 72102866-910b-0410-8b05-ffd578937521
to setLevel: to set the level to NSModalPanelWindowLevel. This was
not previously being done and was causing alert panels to get lost
behind other application windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28195 72102866-910b-0410-8b05-ffd578937521
setWindowFrame... method. This adjustment is only supposed to be
done when a popup is under "restrictive screen conditions" which
is currently unimplemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28191 72102866-910b-0410-8b05-ffd578937521
- (void) setWindowFrameForAttachingToRect:... test if the view
is flipped and make the adjustment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28190 72102866-910b-0410-8b05-ffd578937521
- (void) setWindowFrameForAttachingToRect:... changed how
popup/pulldown buttons handle the preferred edge.
Per Cocoa documentation, the selected cell should always show up
over the button for popups. For pull down menus, the preferred
edge is relevant. This is also apparent from testing under Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28189 72102866-910b-0410-8b05-ffd578937521
allowing markers to be set on an NSMouseDown event.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28188 72102866-910b-0410-8b05-ffd578937521
URL is not a file URL and the call to typeFromFileExtension: returns
nil in typeForContentsOfURL:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28187 72102866-910b-0410-8b05-ffd578937521
* Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU.
* Source/NSPasteboard.m: Retain the path since it's autoreleased.
* Source/NSTextView.m: Set the textview to allow undos by default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28186 72102866-910b-0410-8b05-ffd578937521
position also check orientaion for _isVertical == NO situation.
This fix avoids situation when split view is vertical, postion
changed but method exists after next 'else if' check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28181 72102866-910b-0410-8b05-ffd578937521
connection to _doneButton outlet.
* Source/GSToolbarCustomizationPalette.m: Added code in init
to set the state of the size checkbox.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28120 72102866-910b-0410-8b05-ffd578937521
Default item to popup and make the connection to the show: method
to allow setting the toolbar display mode.
* Source/GSToolbarCustomizationPalette.m: Enable changing of
text, text & icon, icon only on the toolbar.
* Source/NSToolbar.m: Change _build method to load the
displayMode setting.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28110 72102866-910b-0410-8b05-ffd578937521
deleting an item as well as saving an item.
* Source/NSToolbarFrameworkPrivate.h: removed old _loadConfig method
added new methods to track changes to toolbars.
* Source/NSToolbar.m: Added check for items already in the toolbar,
removed calls to _loadConfig which were commented out, implemented
setConfigurationFromDictionary: as described in the documentation,
changed _build to get dictionary from defaults if it's there.
Implemented new method _containsItemWithIdentifier: and
_itemsFromConfig.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28084 72102866-910b-0410-8b05-ffd578937521
explaination for why a cast wasn't used. Added nonDynamic flag
as well as other flags from the nib file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28077 72102866-910b-0410-8b05-ffd578937521
* Source/NSToolbar.m: Partial fix for toolbar drag and drop issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28072 72102866-910b-0410-8b05-ffd578937521
rectangle passed back from rectForPage: callback in NSView
subclasses. This rect should override existing calculations
when it is passed in.
* Source/NSView.m: Change to use NSPrintPaperBounds if and only if
aRect is passed in as a blank rect. Previously the code was
using the NSPrintPaperBounds value and ignoring the passed in
value.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28071 72102866-910b-0410-8b05-ffd578937521
application image before assigning the name "NSApplicationIcon"
to it. This solves bug #25793.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28064 72102866-910b-0410-8b05-ffd578937521
range is passed into glyphRangeForCharacterRange:
actualCharacterRange:. Tests on Mac OS X indicate that this is
a valid case.
* Source/GSNibLoading.m: Fixed some memory leaks.
* Source/NSRulerMarker.m: Use the bounds of the containing view
instead of markersRect. I will revisit if the _markersRect method
needs to be corrected, but this code seems to correct problems
observed when dragging markers in and out of the rulerView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27986 72102866-910b-0410-8b05-ffd578937521
super string value methods and redefine the local string value
methods to work with the object value.
Patch by Matt Rice <ratmice@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27946 72102866-910b-0410-8b05-ffd578937521
minor problem.
* Source/NSDrawer.m: Improvements to NSDrawer handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27911 72102866-910b-0410-8b05-ffd578937521
lay out the menu when vertical. Get rid of the duplicate code here.
* Source/NSDrawer.m: set the child window position when opening.
* Source/NSMatrix.m: -_selectCell:atRow:column: Check to make
sure the selectedRow and selectedColumn are > -1. This check is
done elsewhere and was not done here. This was causing a crash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27907 72102866-910b-0410-8b05-ffd578937521
the OK button when a file the application can open is selected.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27876 72102866-910b-0410-8b05-ffd578937521
the method setStringValue: as documented in Apple's documentation
for the method. This behavior was observed on Cocoa under
Mac OS 10.5.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27874 72102866-910b-0410-8b05-ffd578937521
-[NSNibOutletConnector establishConnection] report exceptions when
establishing a connection, but don't fail to load.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27840 72102866-910b-0410-8b05-ffd578937521
the toolbar on every window update. This makes sure that
no matter what window an event happens in the toolbar gets
properly updated for ALL windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27827 72102866-910b-0410-8b05-ffd578937521
initial directory regardless of the result of validation. This should
fix bug #25363.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27820 72102866-910b-0410-8b05-ffd578937521
This will result in ivars being properly retained.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27812 72102866-910b-0410-8b05-ffd578937521
-[NSApplication run]. Rudimentary implementation of default
NSExceptionHandlerMask.
For more on this change, please see the thread on the gnustep-dev list entitled "Allowing Applications to continue after exception...".
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27809 72102866-910b-0410-8b05-ffd578937521