Hi,
actually, I used the binding to the Content fields of NSPopUpButton
because the possible selection that has to be displayed in the PopUp
changes dynamically. Otherwise I could just have set the menu in IB.
I put a breakpoint on controlTypes and it does return an NSArray
filled with
Folks;
I have an app with a 10.4 Deployment target.
I have recently begun using XC 3.2 and IB 3.2 - spp compiles cleanly
and all IB 'sibling' issues have been resolved.
I've gotten a field report (release) where I'm seeing:
15:01:38.292 XYZ[11756:20b] HIToolbox: ignoring exception '***
On 15/09/2009, at 4:44 PM, Steve Cronin wrote:
15:01:38.292 XYZ[11756:20b] HIToolbox: ignoring exception '***
-[NSCFString substringToIndex:]: Range or index out of bounds' that
raised
inside Carbon event dispatch
This is occurring just as nib is about to open a first window.
I've not seen
On 15/09/2009, at 4:44 PM, Steve Cronin wrote:
Reporting machine is MacBookPro5,1 - 10.5.8
Whoops, just realised you already answered my question. Maybe the
logging got added in 10.5.(late)... ???
--Graham
___
Cocoa-dev mailing list
___
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:
Am 14.09.2009 um 18:32 schrieb Matt Neuburg:
Ah, but the crux of my question is that I don't have the next one
to show.
I don't know what the window will look like when selecting a
different core
data entity until I select it, and by then it's too late. That's why
I'm
asking for a
Does anybody know if/how I can, in my iPhone app, read the data that
you can find in the iPhone's settings under General / Usage / Cellular
Network Data?
I would like to read those values.
In addition, I would also like to reset the statistics at the
beginning of every month.
Any hints,
no - none of that is exposed in the APIs in the SDK.
Gabriel Zachmann wrote:
Does anybody know if/how I can, in my iPhone app, read the data that
you can find in the iPhone's settings under General / Usage / Cellular
Network Data?
I would like to read those values.
In addition, I would
The following is what I ended up with and it seems to work. Please
feel free to pimp my code though... not only do I still have a LOT to
learn but I also really struggle with knowing when to release and
retain.
I plan to change it to use a context but figuring out the best
practice for that can
Hi,
anyone know how I can enable ./ disable a UItext field outside of
IB. I can do this as part of the XIB but I want to disable
interaction on a particular condition.
Also is there a keyboard property i can set to enable the caps lock
key (not the auto capitalization)
Hi,
I have an app that uses a TAB bar controller to launch n view
controllers through my main window.XIB. I wanted each of them to
have a nav bar with custom buttons and so I added a nav bar
controller to the XIB for each one. so the hierarchy in IB is
Tab bar controller
- tab bar
---
Hi,
I have a completed app that calculates graph points x and y
coordinates. I want to present these on a graph that has an
acceptable envelope of coordinates.
I'm guessing that i need to learn how to use quartz to draw lines
pixel by pixel to represent this on a UIview. is there any
On 15/09/2009, at 10:07 PM, Mark Bateman wrote:
if I have a value of x= 10,000 y = 211.2 and an envelope
of 9500, 200: 13000, 211: 14000,214: 9500,214 can i use
NS range to check if the original coordinates are inside the bounds
of that rectangle...
if not any ideas how i
The UI I want is a table view with two buttons below it (iPhone). How
do I change the position of a table view ?
When I drop a table view into the view window it occupies the entire
view. I am able to change the size of the tableview but it it always
centered to the view.
The IB guide at
Ok, I'm beating my head on this one, wasting time I have better things
to spend it on. NSSplitView is a travesty, but we're stuck with it, so
I need to know the magic incantation of delegate methods and other
voodoo needed to implement the following for a split view with one
upper and one
Well, it seems that I forgot to post KVO notifications. But it
worked in Leopard, I swear. It seems that in Leopard when a KVO
notification is posted for a popup button selection, the menu values
are reloaded as well automatically. This does not happen in SL
anymore. At least that's my
On 9/14/09 9:54 PM, Andrew Farmer said:
Yes, sprintf is pure evil. snprintf is less evil.
Also, I recommend adding -fstack-protector -D_FORTIFY_SOURCE=2, they
can
help catch some of these problems. And valgrind would probably have
caught this problem immediately.
Sadly, valgrind hasn't
Do you have some objection to [myTextFiled setEnabled:YES]; and [myTextFiled
setEnabled:NO]; ?Perhaps you prefer myTextFile.enabled = NO; ?
UITextField is a subclass of UIControl which means that all of UIControls
properties and methods are available in UITextField.
Just one delegate method seems to do it for me, but I wrote this quick so I
might be overlooking something:
- (void)splitView:(NSSplitView *)sender
resizeSubviewsWithOldSize:(NSSize)oldSize
{
float desiredTopViewHeight = [_topView frame].size.height;
[sender adjustSubviews];
On 9/16/09 12:01 AM, Graham Cox said:
Ok, I'm beating my head on this one, wasting time I have better things
to spend it on. NSSplitView is a travesty, but we're stuck with it...
*SNIP*
Any ideas what I can do?
http://brandonwalkin.com/bwtoolkit/
I've done this a few times … you can find an example in the source
code of my app Murky, in RepoController.m lines 400-475.
http://bitbucket.org/snej/murky/src/tip/Source/RepoController.m
—Jens___
Cocoa-dev mailing list
Well, I've had some odd experiences with the game kit. For instance my
iPod g1 seems to be able to receive data through bluetooth even though
it cannot send data. But What I'm trying to figure out is how to
detect if the device has bluetooth so that the options for it only
show if the
If you use the GKPeerPickerController for connecting to peers,
bluetooth capabilities are automatically detected and bluetooth can be
automatically turned on if necessary.
Luke
On Sep 15, 2009, at 8:37 AM, Development wrote:
Well, I've had some odd experiences with the game kit. For
On Sep 15, 2009, at 11:25 AM, Jens Alfke wrote:
I've done this a few times … you can find an example in the source
code of my app Murky, in RepoController.m lines 400-475.
http://bitbucket.org/snej/murky/src/tip/Source/RepoController.m
Snow Leopard introduced a new delegate method
At least tell me the reason for this crash report.Please
Hi,
I am getting This crash log only with Snow Leopard(10.6).
1- In Code i am firing timer repeatedly in 0.1 second to load camera
(iSight) image using
NSBitmapImageRep (Category). This is because i am applying real time
tracking of
Hi everybody,
I would like to convert pdf, doc files to html files using Cocoa?
Please help me in this.
Thanks in advance,
Ramesh.P
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
On Sep 15, 2009, at 12:51 AM, Anurag Khare wrote:
At least tell me the reason for this crash report.Please
At least post your code, please.
--
I.S.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
On Sep 15, 2009, at 9:53 AM, Ramesh P wrote:
I would like to convert pdf, doc files to html files using Cocoa?
Please help me in this.
If you want more specific information, break your problem down into
steps. How do I write this application? is an unreasonably-broad
question.
In
On Sep 14, 2009, at 9:51 PM, Anurag Khare wrote:
Application Specific Information:
objc_msgSend() selector name: grayscaleImageRep
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x925de91b objc_msgSend + 27
1 com.apple.Foundation 0x98a839d4 __NSFireTimer + 141
2
On Sep 15, 2009, at 6:53 AM, Ramesh P wrote:
I would like to convert pdf, doc files to html files using Cocoa?
Please help me in this.
This is the kind of question you would ask a paid consultant, not a
mailing list.
Please ask more specific questions; preferably after reading some
Ramesh P wrote:
I would like to convert pdf, doc files to html files using Cocoa?
Please help me in this.
man textutil
http://developer.apple.com/mac/library/documentation/Darwin/Reference/
ManPages/man1/textutil.1.html
Otherwise:
http://www.whathaveyoutried.com
-- GG
I'd like to create a toolbar item similar to the Mount/Unmount item in
DiskUtility. Depending on the context the label will be set to a value
describing the action. For DiskUtility it is Mount or Unmount.
This is easy enough, the problem is that the different label lengths cause the
toolbar to
Hi All,
Thanks for the replies, however I'm noticing from the snippet below
FILE* commsPipe = NULL;
DEBUG_SHOW(CFStringCreateWithFormat(kCFAllocatorDefault, NULL,
CFSTR(Call external Tool (%s) withs Args(%s).), cmd, pArguments) );
err =
That's how I have it set up right now but what I was hoping to do was
set it up so that people do not even see the option for bluetooth if
the ipod can't do it.
Also can any one explain why my iPod g1 gets the bluetooth incoming
data? My receive data handler is being tripped, and the ipod
The traditional way of doing an OpenGL (gCGLPFAFullScreen,
CGLSetFullScreen()) have been deprecated. At WWDC this year, in the
Snow Leopard OpenGL session, a new all-Cocoa method was shown where
you basically just resize the window containing the NSOpenGLView and
layer it above the menu
Please file a bug on the old iPod receiving data when it shouldn't,
and feel free to file a feature request for the ability to poll the
system for bluetooth capability. It won't be the first such request,
but dupes just say that more people want it :)
Luke
On Sep 15, 2009, at 11:23 AM,
On Mon, 14 Sep 2009 17:36:57 -0600, PCWiz pcwiz.supp...@gmail.com said:
Hi,
I'm trying to filter a NSTableView using the contents of an
NSSearchField. I have an Array Controller and table columns bound to
key paths in the array controller. So for example I have the table
column for name is bound
On Mon, 14 Sep 2009 18:16:57 -0700, Kyle Sluder kyle.slu...@gmail.com
said:
On Sep 14, 2009, at 6:14 PM, Matt Neuburg m...@tidbits.com wrote:
I didn't say it was. But it does work. :) All my help books are
XHTML. m.
Well if you're going to write XHTML, that makes sense. But using an
XHTML
In my code I sometimes want to wait until the button that triggers my code
has released itself (e.g. unhighlighted). My way of doing this is with
delayed performance, i.e. the button's action method calls
performSelector...afterDelay and then the real stuff happens. Just
wondering: Is there a
On Tue, Sep 15, 2009 at 11:41 AM, Matt Neuburg m...@tidbits.com wrote:
In my code I sometimes want to wait until the button that triggers my code
has released itself (e.g. unhighlighted). My way of doing this is with
delayed performance, i.e. the button's action method calls
Mark Thomas wrote:
I notice from the NSLog's outputs that this code doesn't seem to be
waiting for that launched tool to finish, as I have also put some
NSLogs within the tool itself, as I do not see NSLog's timestamps
match up, as I would expect to see the timestamp of the above 'tool
On Sep 15, 2009, at 5:20 AM, Graham Cox wrote:
On 15/09/2009, at 10:07 PM, Mark Bateman wrote:
if I have a value of x= 10,000 y = 211.2 and an envelope
of 9500, 200: 13000, 211: 14000,214: 9500,214 can i use
NS range to check if the original coordinates are inside the
On Sep 14, 2009, at 6:08 PM, Jens Alfke wrote:
On Sep 14, 2009, at 2:43 PM, Ben Lachman wrote:
I was looking at the NYTimes iPhone app today and noticing that it
looks like they're using a UIWebView with a custom font (not sure
what font though, anyone know?). I did some digging on how
Hi
wait() only works if there's a direct child process. Other
relationships (e.g. grandparentage) don't count.
Seems fair and matches the documentation
I recommend that your privileged tool log its getppid() value and
you manually compare to the getpid() value of the initiating
Ok I have reused this code a million times and never had a problem
until now.
I'm attempting to send an NSDictionary from one iPhone to another.
Actually an iPod to the simulator. And one of two things happens.
Either the data is totally muxed Meaning sent completely out of order
OR it
Mark Thomas wrote:
This I cannot check the pid of the initiating process as it's
'AuthorizationExecuteWithPrivileges' which has launched this
process and given it extra privileges somehow, as the below path to
the tool is passed in via the 'cmd' argument, so it's the direct
tool which
Hi, I'm new to Cocoa and I'm trying to make some kind of canvas control that
can contain and display sub-controls in various locations (think of
dashboard with buttons instead of widgets
to get a picture). Compared to other toolkits have experienced, this seems
kind of hard to do with
Cocoa.
I've
On Sep 15, 2009, at 1:46 PM, Ben Lachman wrote:
However, I also found after checking the NYTimes app again that
they're actually using Georgia for their font face, not anything
custom.
I know this is doable, though, because the app Eucalyptus includes
custom fonts (the Libertine
You can do custom fonts on the iPhone, but you cannot use system
controls to draw with them. You have to draw yourself each glyph.
There is some info on the Apple iPhone Dev forums on how to do this.
On Sep 15, 2009, at 5:41 PM, Jens Alfke wrote:
On Sep 15, 2009, at 1:46 PM, Ben Lachman
On Sep 15, 2009, at 2:36 PM, Development wrote:
while (0 remainingToWrite) {
int actuallyWritten = 0;
actuallyWritten = [_outStream write:marker
maxLength:remainingToWrite];
remainingToWrite -= actuallyWritten;
marker += actuallyWritten;
By the way I realize that I was just asking about bluetooth, This app
has both bluetooth and wifi sharing. pretty standard feature set I
suppose.
I did simi solve the problem I've been having with this by turning off
the send and receive structure. In other words when a session starts
it
anyone have a hint here? this is totally baffling me.
On Sep 11, 2009, at 3:44 PM, David M. Cotter wrote:
the myNSWindow is NOT nil
when i try to set a breakpoint on setDocumentEdited, the enabled
check box shows mixed state, and the breakpoint is never hit. if
i try to set it to on it
On 16/09/2009, at 12:01 AM, Graham Cox wrote:
1. When I drag the splitter directly, it moves allowing me to
position it where I want within the constrained min and max of the
contained views.
2. When the window resizes I want the split to stay exactly where it
is relative to the top of the
Thanks to all - I got it working as I need using the
splitView:resizeSubviewsWithOldSize: method.
Still baffled as to why its design is so bad, but there are bigger
fish to fry... ;-)
cheers, Graham
On 16/09/2009, at 1:06 AM, Andy Lee wrote:
Just one delegate method seems to do it
I'm getting a crash when my undo manager starts to discard tasks once
the undo levels are exceeded. It's an over-release of an object called
a _NSUndoBeginMark which is private to Cocoa. I'm not sure how I
should go looking for the source of the problem - it occurs after
repeatedly
On Sep 15, 2009, at 7:54 PM, Graham Cox wrote:
While I am subclassing NSUndoManager in this case it's not doing
anything special - endUndoGrouping just calls super. However I would
be prepared to believe that something in the creation of the undo
task is wrong where a bit more work is
On 15-Sep-09, at 6:57 PM, cocoa-dev-requ...@lists.apple.com wrote:
You can do custom fonts on the iPhone, but you cannot use system
controls to draw with them. You have to draw yourself each glyph.
Sure you can. It's just tricky.
http://www.alexcurylo.com/blog/2009/05/29/custom-fonts/
--
Open Instruments, add the object allocation instrument, turn on
reference count recording and zombie detection in the instrument,
and then record your app. Do what you need to do to reproduce the
problem. When it triggers, you'll get a backtrace of both the
offending access and everything
Open Instruments, add the object allocation instrument, turn on
reference count recording and zombie detection in the instrument,
and then record your app. Do what you need to do to reproduce the
problem. When it triggers, you'll get a backtrace of both the
offending access and everything
On Sep 15, 2009, at 8:40 PM, Graham Cox wrote:
What seems weird to me is that there is no release or dealloc event
for this. It jumps straight from ref count = 1 to being a zombie.
How is that possible? Or am I not using the tool correctly?
Are you sure you have reference counting also
On 16/09/2009, at 12:43 PM, Nick Zitzmann wrote:
On Sep 15, 2009, at 8:40 PM, Graham Cox wrote:
What seems weird to me is that there is no release or dealloc event
for this. It jumps straight from ref count = 1 to being a zombie.
How is that possible? Or am I not using the tool
Hi,
I have created a minimal OS X boot stick (basically the Snow Leopard
DVD with all the packages and installer stripped out). I've written a
basic Cocoa app launcher to launch other apps that I put in the
Applications folder (the minimal install lacks Dock and Finder).
When I try to
Dear list,
I need to work with strings as in stringA. (I don't have much choice,
but to have it in a NSString at the start.) I want to have the
readable output hello world.
NSString *stringA = @hello\040world;
NSString *stringB = [NSString stringWithUTF8String:hello\040world] ;
// This
Thank you, Kyle. Yours was the first KVO solution I received, and it
seems everyone (Graham and Roland, thank you as well) independently
agrees with one another on this. It seems so simple now that I think
of it in this KVO fashion. Thanks to everyone for their input and
straightforward
Hi Matt,
I'm trying to filter a NSTableView using the contents of an
NSSearchField. I have an Array Controller and table columns bound to
key paths in the array controller. So for example I have the table
column for name is bound to Array Controller.arrangedObjects.name.
What I want to do now
On Sep 15, 2009, at 9:04 PM, Johan Kool wrote:
NSString *stringA = @hello\040world;
NSString *stringB = [NSString stringWithUTF8String:hello
\040world] ;
I'm confused. '\040' is a regular ascii space character (040 = 32
decimal). What's unusual about either of these strings?
// This
On Sep 15, 2009, at 4:23 PM, David M. Cotter wrote:
when i try to set a breakpoint on setDocumentEdited, the enabled
check box shows mixed state, and the breakpoint is never hit.
if i try to set it to on it goes back to mixed state
so i can't set a breakpoint :(
What are the exact
On 16/09/2009, at 1:17 PM, Graham Cox wrote:
I guess it's time to strip this down to a small reproducible case I
can give them...
OK, narrowing it down, the problem seems to be an interaction between
NSTextView and NSUndoManager. So far I've discovered that:
1. If I disable undo for
Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven:
On Sep 15, 2009, at 9:04 PM, Johan Kool wrote:
NSString *stringA = @hello\040world;
NSString *stringB = [NSString stringWithUTF8String:hello
\040world] ;
I'm confused. '\040' is a regular ascii space character (040 = 32
On Wed, Sep 16, 2009 at 12:10 AM, Johan Kool johank...@gmail.com wrote:
Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven:
On Sep 15, 2009, at 9:04 PM, Johan Kool wrote:
NSString *stringA = @hello\040world;
NSString *stringB = [NSString stringWithUTF8String:hello\040world] ;
On Sep 15, 2009, at 9:59 PM, Graham Cox graham@bigpond.com wrote:
3. I am re-using the textview for different edits, much like the
field editor. This involves replacing the text storage for a new
edit, by calling -replaceTextStorage on the text view's layout
manager. Then, undo fails
71 matches
Mail list logo