Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 8 Jul 2011 10:04:23 +0000 (12:04 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 8 Jul 2011 10:04:23 +0000 (12:04 +0200)
commit4393663bc52fc24c15aa9c1779dfc23d3a0f901f
treeac7c3b0fd0cf38005423465b7779da4ed2c3bb87
parent2287ac9896c30303d7f469a3e5cb348fbbbd9e23
Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces.

* emacs.c: Declare unexec_init_emacs_zone.

* nsfns.m (check_ns_display_info): Cast to long and use %ld in error
to avoid warning.

* nsimage.m (allocInitFromFile): Don't use deprecated method
bestRepresentationForDevice on OSX >= 10.6.

* nsmenu.m (fillWithWidgetValue): Don't use depercated method
sizeToFit on OSX >= 10.2.

* nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods
cString and lossyCString on OSX >= 10.4

* nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4)
(MAC_OS_X_VERSION_10_5): Define if not defined.
(EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6.
(EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6.
(EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6.

* nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and
variable firstTime not needed on OSX >= 10.6.
(setPosition): setFloatValue:knobProportion: is deprecated on OSX
>= 10.5.  Use setKnobProportion, setDoubleValue.
src/ChangeLog
src/emacs.c
src/nsfns.m
src/nsimage.m
src/nsmenu.m
src/nsselect.m
src/nsterm.h
src/nsterm.m