Suddenly, after a long period of clean operation, I start to this crash.
I’ve copied the last section of the crash report from the user.
Any suggestions appreciated.
Peter
Date/Time: 2015-09-24 15:38:49.222 +0100
OS Version:Mac OS X 10.10.4 (14E46)
Report Version:
:03
To: Peter Hudson
Cc: cocoa-dev@lists.apple.com
Subject: Re: Odd Crash
This is a pretty common type of crash. You’ve got an NSTableView whose
dataSource has been dealloced, so it tried to call the dataSource and crashed.
If you want to catch this in the debugger, turn Zombie Objects on.
Most
I had a feeling something has changed about the order the OS does things in.
I'll go hunting !
Many thanks.
Peter
Original Message
From: Scott Ribe
Sent: Thursday, 24 September 2015 17:15
To: Peter Hudson
Cc: Jens Alfke; cocoa-dev@lists.apple.com
Subject: Re: Odd Crash
On Sep 24,
I have an NSTableView in my app which has started to behave differently on
10.10.
I periodically change the datasource and delegate to the table view ( which is
on screen )
This has worked perfectly up until recently.
After having changed the datasource/delegate to the table view, I confirm th
.
Regards
Peter
> On 26 Sep 2015, at 11:43, Ken Thomases wrote:
>
> On Sep 26, 2015, at 5:13 AM, Peter Hudson wrote:
>
>> I have an NSTableView in my app which has started to behave differently on
>> 10.10.
>>
>> I periodically change the datasource and deleg
I would like to know when the user has finished scrolling one of my table views.
I can’t see any obvious API to do it. ( I’ve checked the scrollers, views etc
which are part of an NSTableView)
All suggestions gratefully received.
Peter
___
Cocoa-dev
to accomplish ?
>
> Sent from my iPhone
>
>> On Sep 30, 2015, at 7:45 PM, Peter Hudson wrote:
>>
>> I would like to know when the user has finished scrolling one of my table
>> views.
>> I can’t see any obvious API to do it. ( I’ve checked the scrollers
;> On 30 Sep 2015, at 10:20 pm, Peter Hudson wrote:
>>
>> As the user scrolls one of the table views, the system does not render all
>> the details in the rows correctly.
>> The most obvious one :- I draw my own lines between rows - inserting
>> separator line
Hi All
Our users have now decided to push the bounds of the system - resulting in file
sizes that are getting to large for comfort.
It would be possible to fairly easily split the current file format into two
and store it as two separate units. This is a particularly interesting
solution as h
t how to get an icon of my
choosing associated with it.
Peter
Original Message
From: Mike Abdullah
Sent: Saturday, 4 June 2016 17:12
To: Peter Hudson
Cc: cocoa-dev@lists.apple.com List
Subject: Re: NSFileWrapper
It sounds like you want your file format to be what is known as a “package”.
I
Hi Jens
“If your app’s performance is suffering because of large files, then use
streams instead, and try to only read the part of the file that’s necessary.”
Could you point me at some material about this technique ? It sounds very
interesting.
I will check out the database approach as well.
Jens
Thanks for these notes - extremely helpful.
I think I will kick off with Realm and see where I get too.
Peter
> On 4 Jun 2016, at 20:36, Jens Alfke wrote:
>
>
>> On Jun 4, 2016, at 9:51 AM, Peter Hudson > <mailto:peter.hud...@me.com>> wrote:
>>
Hi All
Many thanks to everyone who has contributed to this thread on NSFileWrapper.
I have enough insight now to do some work to see what works.
Again, thanks to everybody !
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
Hi All
One of my apps saves its’ files to an Airport Time Capsule.
Bog standard doc based app - using the usual framework methods to save its data.
This works extremely well.
And then, one day, the file that was saved was 20 bytes long instead of the
usual 5 MBytes.
I’m sure there are a host of
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.co
Hi All
I have a simple view with a progress indicator in it.
Simple circular type - indeterminate.
I start it with [progInd startAnimation:self];
I end it with[progInd stopAnimation:self];
After a couple of years of running just fine, it now simply does not appear
onscreen at all - or r
ly converted to swift)
>
> Regards, Michael
>
>
>
> On Sep 10, 2016, at 10:38 AM, Peter Hudson <mailto:peter.hud...@me.com>> wrote:
>
> Hi All
>
> I have a simple view with a progress indicator in it.
> Simple circular type - indeterminate.
>
&
Hi Steve
I think your suggestion is going the right way.
I have ( unwittingly ) moved the processing about and the calls to the progress
indicator are now happening while the thread is blocked for processing ( and
non of the interface is being updated until the processing is done )
Next questi
dispatch the request to start?
>
> On Sep 10, 2016, at 10:16 AM, Peter Hudson wrote:
>
>> Hi Steve
>>
>> I think your suggestion is going the right way.
>>
>> I have ( unwittingly ) moved the processing about and the calls to the
>> progress in
Hi All
I have a report that I currently print to PDF.
Its a simple table with text ( varying fonts ) in the table.
I have tried to convert it to docx with a variety of proprietary converters.
One or two of them do a reasonable job.
But the bottom line is, I think, to get a Word doc that really b
how far off you are from the mark.
>
> Those tools are at:
> https://www.microsoft.com/en-us/download/details.aspx?id=30425
>
>
>> On Tue, Jan 24, 2017 at 2:54 PM, Peter Hudson wrote:
>> Hi All
>>
>> I have a report that I currently print to PDF.
>&
Hi Jens
I wondered about RTF - but I've built everything into a view and I can't see a
method on NSView to produce rtf.
I've done it previously with, I think, an NSText.
Peter
> On 24 Jan 2017, at 20:27, Jens Alfke wrote:
>
>
>> On Jan 24, 2017, at
I was trying to avoid having to go to Direct RTF markup. But as you say, it may
be the answer.
Peter
> On 24 Jan 2017, at 21:13, Jens Alfke wrote:
>
>
>> On Jan 24, 2017, at 12:58 PM, Peter Hudson wrote:
>>
>> I wondered about RTF - but I've built everyt
CX, because with it you can easily define and export powerful
> styles. I mean, you could also create high-quality .DOC files, but you’d have
> to use an external package to do it, not the functions Apple provides.
>
>> On Tue, Jan 24, 2017 at 3:58 PM, Peter Hudson wrote:
>> Hi J
Hi All
I have recently migrated a project to xCode 5.1.1 and OSX 10.9.4
In one of the windows of the app I have an NSSplitView.
Previously, I could adjust the relative size of the splits in Interface Builder
- and when I ran the app, the splits would appear as I set them.
Mysteriously, Inter
Thanks Kyle - I'll take a look at the release notes.
They seem a bit voluminous !
Peter
On Tue, Sep 2, 2014, at 11:39 PM, Peter Hudson wrote:
> Hi All
>
> I have recently migrated a project to xCode 5.1.1 and OSX 10.9.4
>
> In one of the windows of the app I
Hi All
I have ongoing crash problems - and I have no idea where to start looking
around for an answer !
The application is built using Xcode 6.1 on 10.10.2. ( and was running on a
new Macbook Pro running 10.10.2 )
The users have given me a detailed account of what they were doing when the
ote:
>
> On Mar 13, 2015, at 09:46:36, Peter Hudson wrote:
>
>> Crashed Thread:0 Dispatch queue: com.apple.main-thread
>>
>> Exception Type:EXC_BAD_ACCESS (SIGSEGV)
>> Exception Codes: KERN_INVALID_ADDRESS at 0x
ay.
Peter
Original Message
From: Lee Ann Rucker
Sent: Friday, 13 March 2015 19:57
To: Peter Hudson
Cc: Steve Mills; ms_li...@shiftoption.com; Cocoa dev
Subject: Re: Weird crashes on Yosemite
Your code may not have changed, but Apple's code has - are you still using
reference counti
Just starting to play with code signing.
I followed the instructions ( in the ADC docs ) to create my own
certificate - I seem to have succeeded and a certificate has appeared
in my login keychain.
Using the certificate Common Name as the identifier, I run:
codesign -s -v MyCertificate
Thanks for this Carl - it works fine !
I'll post a documentation bug on this as the command line I was using
( -s -v ) is straight out of the doc.
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mo
I notice that when I sign code ( the whole app ) I land up with 2
additional items in my /Contents directory in the app bundle.
These items are a folder called _CodeSignature and an alias called
CodeResources.
If I delete these two items, the code still identifies itself as
signed ( when
,
On Sun, Sep 6, 2009 at 9:00 PM, Peter Hudson
wrote:
I notice that when I sign code ( the whole app ) I land up with 2
additional items in my /Contents directory in the app bundle.
These items are a folder called _CodeSignature and an alias called
CodeResources.
If I delete these two items
I have tackled this problem by using the NSTableView delegate method
tableViewSelectionDidChange:
In this method I query the table for selected rows and then compare
with the index set from the previous call to
tableViewSelectionDidChange: I simply store the incremental changes
in sequen
15/10/2009, at 10:01 AM, Peter Hudson wrote:
I have tackled this problem by using the NSTableView delegate
method tableViewSelectionDidChange:
In this method I query the table for selected rows and then compare
with the index set from the previous call to
tableViewSelectionDidChange: I si
15/10/2009, at 5:24 PM, Peter Hudson wrote:
The user has an NSTableView in which is presented a number of
elements ( 1 per row, typically 20 - 200 rows ) out of which
they need to produce a number of sequenced sub groups.
The user presses the 'Start Sub Group' key ( i.e.
The ED code looks like interesting and I will give it a try as well.
Does anybody know of a good primer on creating / sending email
( possibly in a Cocoa / Objective-C environment )
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Ple
You may find using binary coded decimal is a useful.
If you google for binary coded decimal library for osx
you get a number of libraries. I thought this one was interesting.
http://mac.softpedia.com/get/Development/Libraries/libpbcd.shtml
Peter
__
Try the following:-
Get rid of the current split view ( Unembed objects from the menu )
Drag an NSBox into your window - set it to have no border or title as
appropriate and set it so that it can change size horizontally and
vertically.
Drop your table view and button onto this box - arrange
Technical Q&A QA1361
Detecting the Debugger
Does this code report on my app being debugged by any third party,
even when the app has been stripped of symbols ?
Would it work irrespective of the debugging tool used ?
Peter
___
Cocoa-dev mailing lis
Thanks Jeremy, Kyle and Jonathon for your comments.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubsc
I have an app with a large number of nib files.
These have all worked very happily in xCode 3 - and function perfectly at run
time.
Interface Builder with xCode 3 has never produced any warnings in relation to
these nib files.
When I build the same project in xCode 4 I get a huge number of warn
Hi There
For a long time ( in xcode 3 ) when I want to access a table view data source
( in the sub class code for the table view ) I simply called [self dataSource]
I would then call methods declared and implemented on the class which I new to
be the datasource. This worked fine.
In xcode
Hi All
I use scrollToPoint:to position a table.
When I then use the mouse to scroll the table, as soon as I start the drag the
table moves sharply to what looks like the location it was at before
scrollToPoint: was sent.
Is there something I should do after scrollToPoint: ?
xCode
Thanks for this Kyle - I have however already tried scrollPoint: and I get the
same result.
?
Peter
On 19 Nov 2011, at 17:33, Kyle Sluder wrote:
> On Nov 19, 2011, at 2:06 AM, Peter Hudson wrote:
>
>> Hi All
>>
>> I use scrollToPoint:to position a table
Hi All
I have an NSTableView whose position I want to control purely programatically.
How do I stop the user from changing its position using the mouse - including
two finger swipe gestures ?
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.c
uggestions….
Peter
On 21 Nov 2011, at 16:33, Kyle Sluder wrote:
> On Mon, Nov 21, 2011 at 6:45 AM, Richard Somers
> wrote:
>> On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote:
>>
>>> I have an NSTableView whose position I want to control purely
>>> program
; On Nov 21, 2011, at 5:11 AM, Peter Hudson wrote:
>>
>>> I have an NSTableView whose position I want to control purely
>>> programatically.
>>>
>>> How do I stop the user from changing its position using the mouse -
>>> including two finger
Hi All
I have an NSTextField in an app. For some years I have set the background
colour with, not unsurprisingly, setBackgroundColor:
Recently I noticed that when attempting to set the BG colour instead of the
whole area of the text field changing colour,
I get a thin line of colour chang
could
I disappear it ?
Peter
On 10 Dec 2011, at 15:48, Ross Carter wrote:
> Just to make sure: are you certain that the text field is not being edited
> (and therefore obscured by the field editor) when you set the bg color?
>
>
> On Dec 10, 2011, at 3:50 AM, Peter Hudson
I fixed a similar problem by specifically using NSImageCell .
setImageScaling:
You could also try setControlSize:
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list
Hi all
I have been making a few ( trivial ) changes to some code and when the app runs
it grinds to a halt with an
Objective-c exception and the next to last item on my stack is
__PRETTY_FUNCTION__.219635
( the top of the stack being obj_msgSend )
Anybody have any ideas on this one. I
that with past versions of the compiler, performing this
piece of nonsense produced a warning from the compiler.
It was so long ago now though …..
Regards
Peter
On 24 Dec 2011, at 13:20, Ken Thomases wrote:
> On Dec 24, 2011, at 6:11 AM, Peter Hudson wrote:
>
>> I have been
Hi all,
I seem to have acquired a repeatable crash problem - which has only
just appeared.
The log looks like this :-
OS Version: 10.4.11 (Build 8S2167)
Report Version: 4
PID: 223
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x5079
Thread 0 Cras
What is the dSYM - and this output was produced from a debug build.
Peter
On 18 Apr 2011, at 20:38, Nick Zitzmann wrote:
On Apr 18, 2011, at 1:26 PM, Peter Hudson wrote:
Hi all,
I seem to have acquired a repeatable crash problem - which has only
just appeared.
The log looks like this
Thanks for this Nick - I'll give it a go !
I've hunted around on the web for material on using dwarfdump - but
can't find anything much.
Any suggestions appreciated !
Peter
On 18 Apr 2011, at 21:17, Nick Zitzmann wrote:
On Apr 18, 2011, at 2:09 PM, Peter Hudson wrote
Hi Jerry
Many thanks for theSTEPS TO SYMBOLIZE A CRASH DUMP.
I'll pick my way through it.
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at
Hi All
Have a piece of drag and drop code that has worked perfectly for a
long time on Intel laptops with the trackpad and mouse button.
One of our users with the latest type of Macbook Pro ( integrated
trackpad and mouse ) can produce problems in this drag and drop code.
The result of th
In IB set the button to be disabled.
Set yourself up a delegate for the text field and let the delegate
respond to
-(void)controlTextDidChange:(NSNotification *)aNotification
It is also convenient if the delegate has a pointer to the button as
well.
When the delegate receives this notificat
I'm not sure quite how big you data is - but I write big data sets to
file by writing all the data into an NSTextView - and then get the
RTF data from the view.
There is also quite a lot of scope for combining separate RTF files.
You can see how to do this by renaming your RTF file with a
I need to draw a focus ring ( or something that looks like a focus
ring ) around a group of rows in an NSTableView.
Drawing a rectangle with NSBezierPath works fine - how do I make it
look like a focus ring ?
Peter
___
Cocoa-dev mailing list (Co
" Files that are necessary should be inside your app bundle,
usually."
I put some files into the app bundle which were essential for the app
to run -
but also needed to be modified at run time.
The first time our app was installed on a server ( for a number of
users to have access
I'm getting confused.
It seems that any files that are 'essential to the running of the
app' are placed in the bundle.
It also seems that any files that are 'essential to the running of the
app', if they are in the bundle, must not be modified.
The type of files which I put in the bund
Begin forwarded message:
From: Peter Hudson
Date: 18 February 2010 12:46:55 GMT
To: Graham Cox
Subject: Re: Re : Proper way to initialize application support file
I started out this way to avoid exactly the problem you get from
requiring users to move critical files around. Most of our
I have a table view with 3 columns.
I have implemented the delegate method -tableView:heightForRow: in
order to set row height.
The height is set correctly, my NSMutableString s are rendered
correctly.
I can't however select rows in the table view.
Any suggestions.
Peter
_
Here is the setup ...
Table view with 3 columns.
In tableView:objectValueForTableColumn:row: I return an
NSAttributedString, most of which use 2 different fonts.
To set the row height I have implemented the delegate method :-
-(float)tableView:(NSTableView *)tableView heightOfRow:(
If the size of the table permits, when the table is empty, have the
datasource return for one cell the string "Drop Files Here"
When the user has dropped a file, you can adjust what the datasource
returns to not show the string.
Further games with setting the row height and using an attribut
I can't log in to my Dev Centre account.
Does anyone know who to email about this ?
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-ad
Can you post your code for numberOfRowsInTableView:
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
He
of
> NSMutableAray)
>
> - (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView
> {
>return self.experimentList ? [self.experimentList count] : 0;
> }
>
> Jean
>
>
> On 26 avr. 2012, at 11:45, Peter Hudson wrote:
>
>>
>> Can you post your
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.co
Hi All
I use an NSSavePanel to save data to file in HTML format.
This panel is run from a button in one of the panels in the app.
The whole mechanism has been working absolutely fine for a long time - up
until 10.8.
I know find that if I click in the "select directory popup" that the app
? Did you run with zombies on?
>
> --
> Jon
>
> On Feb 23, 2013, at 6:14 PM, Peter Hudson wrote:
>
>> Hi All
>>
>> I use an NSSavePanel to save data to file in HTML format.
>> This panel is run from a button in one of the panels in the app.
>>
sheet ?
Peter
On 24 Feb 2013, at 00:35, Graham Cox wrote:
>
> On 24/02/2013, at 10:49 AM, Peter Hudson wrote:
>
>> Here is a truncated crash log - whole log exceeds dev-list max size;
>
>
> I have seen something similar when running the save panel as a sheet attached
Here is the code for running the NSSavePanel.
I run the panel using runModal.
I simply never return from the runModal if I click the directory popup.
Peter
-(IBAction)exportDayOutOfDaysReportToHTML:(id)sender
{
NSSavePanel *sp = [NSSavePanel savePanel];
[sp setTitle:@"
arose.
>
> --Andy
>
> On Feb 24, 2013, at 4:26 AM, Peter Hudson wrote:
>
>> Here is the code for running the NSSavePanel.
>> I run the panel using runModal.
>> I simply never return from the runModal if I click the directory pop
I have built a minimal app in xCode 4.6 ( latest release ) running on 10.8.2 -
and naturally the directory popup in the NSSavePanel works perfectly.
I started the save panel, as before, with runModal.
I have gone back to my main app and stripped the method to practically nothing
but setting
Well Quincey, your comment on the last line of code here was salient :-
> NSSavePanel *sp = [NSSavePanel savePanel];
> [sp setTitle:@"Save as HTML"];
> [sp setRequiredFileType:@"html"];
I commented out the setRequiredFileType: and all is well again.
As you point
der wrote:
> On Feb 24, 2013, at 12:27 PM, Peter Hudson wrote:
>
>> I commented out the setRequiredFileType: and all is well again.
>>
>> As you point out, this method is deprecated.
>>
>> I've never come across a deprecated method that malfunc
I recover the path string from a Save Panel like so :-
NSArray *pathComponents = [[sp URL] pathComponents];
When I put them together again to use to write a file, any spaces in the file
name are turned in %20 symbols.
Any suggestions what I am doing wrong ?
Peter
__
Thanks Iain and Lee Ann
path was the method I needed.
Peter
On 4 Mar 2013, at 20:38, Lee Ann Rucker wrote:
>
> On Mar 4, 2013, at 8:25 AM, Peter Hudson wrote:
>
>> I recover the path string from a Save Panel like so :-
>>
>> NSArray *pathComponents =
Hi All
I create an attributed string - setting the background color, font colour and a
paragraph style to range left.
When this cell is displayed in an NSTable view it works exactly as I would hope.
Also, when the row is selected the system reverses out the foreground font
color as usual.
I the
I can't find any reference to NSControlTextColor anywhere.
Peter
On 30 Jun 2013, at 19:44, Kyle Sluder wrote:
> On Jun 30, 2013, at 6:04 AM, Peter Hudson wrote:
>
>>
>> I then append a second attributed string to the first - with very similar
>> attribute
Thanks Kyle. That has fixed it.
Peter
On 30 Jun 2013, at 20:39, Kyle Sluder wrote:
> On Jun 30, 2013, at 12:33 PM, Peter Hudson wrote:
>
>> I can't find any reference to NSControlTextColor anywhere.
>
> Sorry, I'm referring to +[NSColor controlTextColor]. A
Andy
Thanks for this, It helps me fix another problem I have.
Peter
On 30 Jun 2013, at 20:48, Andy Lee wrote:
>
> On Jun 30, 2013, at 2:44 PM, Kyle Sluder wrote:
>
>> On Jun 30, 2013, at 6:04 AM, Peter Hudson wrote:
>>
>>>
>>> I then append
I am trying to create an application support directory for my app ( on 10.8.3 )
I am using this piece of example code ( from the docs ) :-
NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier];
NSFileManager*fm = [NSFileManager defaultManager];
NSURL*dirPath = nil;
just the name of the app.
Is there a good reason to follow the suggested naming convention ?
Peter
On 10 Jul 2013, at 14:33, Mike Abdullah wrote:
>
> On 10 Jul 2013, at 11:25, Peter Hudson wrote:
>
>> I am trying to create an application support directory for my app
Thanks Scott.
That opens up some interesting possibilities for managing the development of
the app going forward.
As you say, shame Apple sets such a sloppy example.
Peter
On 10 Jul 2013, at 16:04, Scott Ribe wrote:
> On Jul 10, 2013, at 8:58 AM, Peter Hudson wrote:
>
>> Bea
All
I have assembled several pages of text as RTF in an offscreen NSTextView -
outputTextView in the code below.
As the text was assembled in the view, I have marked the end of each page with
a \page symbol in the RTF.
As I have added each piece of text into the view I have determined how
Here's a few suggestions
a) Check your settings in project ( as in project -> edit project
settings )
Check that your target platform and lib selection is OK.
Ensure that you are not zero linking.
b) Do a completely clean build - i.e. close the project and drop the
build directory into
[1] use the image file to init an NSImage :-
e.g. NSImage *image = [[NSImage alloc]
initWithContentsOfFile:@"bookCover.tiff"]; // takes a range of
graphic file types
[2] use this image in the message - (void)setImage:(NSImage *)
image to your image view
(PH)
__
The line of code [NSArray arrayWithObjects: c0, ...c9, nil]; produces
an array all right - but as you have used a class initializer, it
will auto release
when you return from the method where it was created.
Any initialiser with a "+" in front of it returns an autoreleased
object
- hen
I've had similar troubles. I fixed it by setting the min and max
width of the column - and then an actual width as well.
Then set it non re-sizeable.
PH
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
I need to set the combination of option + command + up /
down arrow in the main menu.
It does not seem to be possible to do this in interface builder.
Any suggestions ?
Peter
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Ple
I have an NSTable View inside an NSSplitView.
I rotate the table view by sending rotateByAngle:270 to the
enclosing scroll view.
The table lands up exactly as I want it with vertical rows.
The problem is that when I resize the split view the NSTableView does
not change size to fit the spl
sizeToFit simply sets the width of a column to the width of the
header cell - and I suspect that you
want to set the width of each column to suit the widest cell of
data in that column.
Here is the heuristic to achieve that:
( Assuming that you have not changed the font for any of the ce
I have been using the following for a while across a number of
languages without problems.
NSString *s = @"Hello";
unsigned int length = [s length];
unsigned int index = length - 1;
NSMutableArray *ma = [NSMutableArray array];
while( index < UINT_MAX )
{
NSRange rn
In IB in the Library panel, just below half way down there is a symbol
on the left hand side which is a dollar sign ( and a calendar symbol
next to it ) which is the number formatter. Click this and drag it
to the text field - and drop it on it. Once the formatter is applied
to the text
Have trawled the archives and can find only a suggestion to do a
performClick on the combo ( which fails ) or an undocumented method.
I notice from the docs that the button and text field are encapsulated
in an NSComboBoxCell. Have checked the cell docs - can't see any
means to get to the
Have you tried calling abortEditing on the table view.
I can't remember if it causes a write or not - but in the context
where I previously used it I would have needed it to.
PH
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
1 - 100 of 124 matches
Mail list logo