I get warning UIViewController may not respond to '-vagTouchesBegan:'
(Messages without a matching method signature will be assumed to return 'id'
and accept '...' as arguments) when I call the view controller from the sub
view
- (void) touchesBegan: (NSSet *)touches withEvent:(UIEvent *)event {
No, the conclusion is : That _is_ the easy and straight way to do it.
Subclassing is your power and friend, my friend. Once you understand
what those lines actually do, you should have a different point-of-view.
Embrace the subclass, for they know what they are doing. :-)
gary
On May 30,
But my app is a normal Cocoa App, it's not a daemon or an agent.
On Sun, May 31, 2009 at 6:16 AM, Chris Hanson c...@me.com wrote:
The best way to ensure your daemon or agent is always running is to have it
run via launchd.
Start by reading the launchd man page and the Daemons and Agents tech
On May 31, 2009, at 12:10 AM, cocoa-dev-requ...@lists.apple.com wrote:
What does setAutosaveName actually do? I assume it saves the
position of the splitview to user defaults?
Did you read the fine manual? It's fairly plain:
Sets the name under which receiver’s divider position is
Ok so more specifically I should have asked:
How do I get the NSSplitView to restore the divider position when my app
relaunches the next time?
I set the autosave name but when I drag the splitter, then quit and relaunch,
it's still in the default position, not the position it was in when I
I have a custom icon in a .tiff that I draw next to my cells in an
NSOutlineView table.
Everything works fine until I turn on
NSTableViewSelectionHighlightStyleSourceList:
[ registryOutlineView
setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSourceList ];
When I do that the
I guess my first question is, why are you using an NSBrowserCell for
this? NSBrowserCell probably knows nothing about table view
highlighting styles, because its intended use is inside an NSMatrix
within an NSBrowser.
An image-and-text cell is not hard to create. It can delegate its
drawing to
Could you split your app in two?
One would be a daemon that runs all times, the second a gui-frontend
for the deamon.
The problem seems to be that no one here can think of an app that has
a gui that no one ever looks at. Why a gui at all if no one looks at
it anyway?
atze
Am
I think I solved the warning problem. I suspected my folder logic was wrong
so I cleaned it up, taking all class files from the project and adding them
back one by one. And it works fine, no warning anywhere !I had a duplicate
controller I had created by mistake and I thought I had gotten rid of.
Can you give us so more details? For example: What will the app do?
Your description is very strange, lol.
But indeed, you should create a normal cocoa app that do the stuff you
want to do (UI + the real stuff),
and a little daemon that checks every X minutes if the other app is
running:
On May 31, 2009, at 8:04 AM, Pierre Berloquin wrote:
Also I follow your advice about retaining loopholes and use
-(void)setViewController:(UIViewController *) vc{
theViewController = vc;
}
So the warning remains puzzling. Note that it's displayed on the sub
view .m
page only, after the
On 27 May 2009, at 18:20, Dennis Hartigan-O'Connor wrote:
I have a very similar problem: my simple program that downloads
stock prices has been working fine but intermittently crashes on
10.5.7, whether I use sendSynchronousRequest or
stringWithContentsOfURL. For me, too, everything is
Strange, this originally was a link
A Core Data Tutorial Part 2: Polishing the Basics
Guess it got stripped, here is the real link.
http://themikeswan.wordpress.com/2009/05/30/a-core-data-tutorial-part-2-polishing-the-basics/
Mike Swan
ETCP Certified Entertainment Electrician
Am 30.05.2009 um 19:45 schrieb cocoa learner:
Yah Andy and Michael you all were right. But still I have some
problem.1.
While resizing the window Image is not getting resized.
You could probably fix that using setImageScaling: on the image view.
2. My controls (NSButton and NSTextField)
Am 31.05.2009 um 12:12 schrieb Jelle De Laender:
Can you give us so more details? For example: What will the app do?
Your description is very strange, lol.
But indeed, you should create a normal cocoa app that do the stuff
you want to do (UI + the real stuff),
and a little daemon that checks
On Sat, May 30, 2009 at 11:22 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
What does setAutosaveName actually do? I assume it saves the position of the
splitview to user defaults?
The behavior is documented, succinctly, here:
On Sat, May 30, 2009 at 11:36 PM, Eric Hermanson zmons...@mac.com wrote:
Yes Mike, you ask a very pertinent question.
First I'm looking for a source-time (not compile-time) monitor that would
alert me to potential code problems as I type.
Seems like this would have to be *extremely*
On May 30, 2009, at 2:18 PM, Kelvin Chung wrote:
I seem to have a very simple question, but the answer is eluding me
for some odd reason, but here goes:
Suppose I have two NSArrayControllers, ac1 and ac2. Suppose now
that I have a third controller ac3, whose content array is dependent
I have an outline view where the first column are file names. There is
absolutely no processing of the name going on in my code.
Everything has been working fine for a long time. Suddenly I discover
a filename that causes the value displayed to be truncated. I've
played with it. There are no
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
On May 31, 2009, at 8:51 AM, Uli Kusterer wrote:
Another approach would be to try changing the class of your content
view in Interface builder. Simply click the background of the
window, that should show the content view in the inspector. Go to
the Identity tab and change the class to
Michael,
Do you have a link for the article ?
There wasn't one in your announcement ?
Thanks
-Mic
2009/5/31 Michael Swan michaels...@mac.com:
Part 2 of my tutorial is up for anyone that is interested.
A Core Data Tutorial Part 2: Polishing the Basics
Mike Swan
ETCP Certified
http://themikeswan.wordpress.com/2009/05/30/a-core-data-tutorial-part-2-polishing-the-basics/
On May 31, 2009, at 9:43 AM, Mic Pringle wrote:
Michael,
Do you have a link for the article ?
There wasn't one in your announcement ?
Thanks
-Mic
___
On Sun, 24 May 2009 13:30:30 -0500, Dietmar Kuttelwascher dik...@mac.com
said:
This is a newbie question, my apologies if it has been discussed in
the past. I haven't been programming on a Mac since the System 7 days
and trying to catch up with OS X and Cocoa...
I have text field bound to an
i can't seem to find documentation on how to disable preference
specifiers based on PSToggleSwitchSpecifier current setting. an
example is the Nike+iPod's settings. activating the app will enable
the remaining settings to be configured, while they are grayed
out/disabled if the app is not
On Sun, May 31, 2009 at 3:57 PM, Uli Kusterer
witness.of.teacht...@gmx.netwrote:
Am 31.05.2009 um 12:12 schrieb Jelle De Laender:
Can you give us so more details? For example: What will the app do?
Your description is very strange, lol.
But indeed, you should create a normal cocoa app that
On Sun, May 31, 2009 at 11:08 AM, Ammar Ibrahim ammar.ibra...@gmail.com wrote:
This seems like a very doable approach. Anyhow, the daemon itself might
crash, so I would go for a cron job that runs say every 5 mins,
We have launchd which already relaunches tasks that die.
--Kyle Sluder
On May 31, 2009, at 2:08 PM, Ammar Ibrahim wrote:
Can you give us so more details? For example: What will the app do?
Your description is very strange, lol.
But indeed, you should create a normal cocoa app that do the stuff
you
want to do (UI + the real stuff),
and a little daemon that
Am 31.05.2009 um 20:27 schrieb Gwynne Raskind:
The Cocoa variant of the distributed notification is
NSDistributedNotificationCenter :).
I thought so, but it wasn't in NSNotification.h when I looked there,
and there was no NSDistributedNotification.h. Figures that
On May 31, 2009, at 6:15 AM, erg_consult...@yahoo.com wrote:
Ok so more specifically I should have asked:
How do I get the NSSplitView to restore the divider position when my
app relaunches the next time?
I set the autosave name but when I drag the splitter, then quit and
relaunch, it's
Hi Everyone:
I am wondering if the method that the iWork apps use to add themselves to
the dock (after install, they add themselves to the dock) requires a private
API. I am looking into a way to use this method not to add icons but to do
some quick preference switching of the dock without
On 2009-05-31, at 12:58 PM, Pierce Freeman wrote:
Hi Everyone:
I am wondering if the method that the iWork apps use to add
themselves to
the dock (after install, they add themselves to the dock) requires a
private
API. I am looking into a way to use this method not to add icons
but to
On 2009-05-31, at 10:03 AM, Chunk 1978 wrote:
i can't seem to find documentation on how to disable preference
specifiers based on PSToggleSwitchSpecifier current setting. an
example is the Nike+iPod's settings. activating the app will enable
the remaining settings to be configured, while
For some reason that I have yet to discover, calling -
[NSAttributedString size] is causing a crash. It's rare, but it's
happening. I can't yet repeat it on my system.
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0010
Thread 0
Gwynne Raskind wrote:
Note that OS X's Force Quit command doesn't send SIGKILL
immediately; I believe it sends SIGINT and SIGQUIT before resorting
to SIGKILL, ...
On 10.4 and 10.5, it sends SIGTERM before resorting to SIGKILL.
In some earlier OS version, SIGINT may have been used instead
On 31 maj 2009, at 15.36, Seth Willits wrote:
For some reason that I have yet to discover, calling -
[NSAttributedString size] is causing a crash. It's rare, but it's
happening. I can't yet repeat it on my system.
snip
If [self title] were nil, I'd get an exception when creating the
Where is it documented? Other than the scant listings for
setAutosaveName: and
autosaveName:
I see no discussion as to what they actually do or how to use them.
From: Jim Correia jim.corr...@pobox.com
To: cocoa-dev@lists.apple.com
Sent: Sunday, May 31, 2009
Because that is how code posted in the archives says to do it.
If I use NSImageCell or NSTextFieldCell (which I've tried), the icons never
show up. Those work for NSTableView icons but not NSOutlineView icons.
From: Kyle Sluder kyle.slu...@gmail.com
To: Erg
Hi
I wrote an app that converts Word files into a simpler format by first
converting from .doc to html using scripting and Word's Save as Web
page command followed by using NSXMLDocument to extract the parts I
need. I'm finding that there are no good options when it comes to
choosing a
On May 31, 2009, at 3:45 PM, Kyle Sluder wrote:
On Sun, May 31, 2009 at 3:36 PM, Seth Willits sli...@araelium.com
wrote:
If [self title] were nil, I'd get an exception when creating the
attributed
string, not a crash when calling -size. There's nothing fancy going
on with
Not on Leopard
On 31 maj 2009, at 16.08, Seth Willits wrote:
On May 31, 2009, at 3:49 PM, Joar Wingfors wrote:
If [self title] were nil, I'd get an exception when creating the
attributed string, not a crash when calling -size. There's nothing
fancy going on with the string. The only thing I can think of
On Sun, May 31, 2009 at 4:04 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
Because that is how code posted in the archives says to do it.
Where is this code? In any event, it's wrong. It's a convenient
shortcut if NSBrowserCell draws the way you want it to, but obviously
it doesn't.
If
On Sun, May 31, 2009 at 4:08 PM, Seth Willits sli...@araelium.com wrote:
Alright, well, either way I know it's not happening because it's not in the
console log.
You don't know it's not nil unless you check yourself. Set a
conditional breakpoint; it's the only real way to reason about your
On Sun, May 31, 2009 at 4:02 PM, Erg Consultant
erg_consult...@yahoo.com wrote:
Where is it documented? Other than the scant listings for
Why are you setting the split view's autosave name in code?
99.(completely arbitrary number of 9's)% of the time you set it once
in IB. That way it has the
Hi All,
I'm cross-posting this to both the Xcode and cocoa-dev mailing lists,
since I am stumped and I suspect one of you have answered this
question before:
I want to discover the default font used for UITableView's section
header view when you set the style to UITableViewStyleGrouped.
On Sun, May 31, 2009 at 10:03 AM, Chunk 1978 chunk1...@gmail.com wrote:
i can't seem to find documentation on how to disable preference
specifiers based on PSToggleSwitchSpecifier current setting
You will be much more likely to get much better answers if you take
this to the appropriate venue:
Hi All,
Never mind - I forgot to set the UILabel's font before setting the
text value. DOH!
Thanks for listening.
Live Playfully,
Sam
-
If he listens in faith,
finding no fault, a man is free
and will attain the cherished words
of those who act in virtue.
On May 31, 2009, at 7:46 PM,
On 31/05/2009, at 11:38 AM, Gwynne Raskind wrote:
Not to mention I haven't yet figured out a way to apply
__attribute__((unused)) to an ObjC method parameter. I just get a
pile of syntax errors, or it gets applied to the function instead of
the parameters.
Just use #pragma
On 01/06/2009, at 1:33 AM, Peter Hudson wrote:
Any suggestions.
Post your code?
--Graham
___
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
Erg Consultant wrote:
I see no discussion as to what they actually do or how to use them.
The docs are concise to the point of opacity.
You'd have to infer the workings of NSSplitView from the way other
views do auto-saving, e.g. NSTableView's setAutosaveName: .
On May 31, 2009, at 5:04 PM, Erg Consultant wrote:
Because that is how code posted in the archives says to do it.
If I use NSImageCell or NSTextFieldCell (which I've tried), the
icons never show up. Those work for NSTableView icons but not
NSOutlineView icons.
Have a look at the
Greetings,
CocoaHeads is an international Mac programmer's group. Meetings are
free and open to the public. We specialize in Cocoa, but everything
Mac programming related is welcome.
Upcoming meetings:
Australia
Melbourne- Thursday, June 11, 2009 18:00.
Germany
Aachen- Thursday, June 18,
Hi
How to use Toolbar to create UI like Mac MSN preference?
Push the button,window changes.
Is there any sample code?
BR
***
The opinions and views expressed in this e-mail are solely those of the author
and do not necessarily represent those of Qisda
Hi,
I use NSXMLParser to parse large XML files-- going good BUT :)
I cant get the parser to resolve the external entities from the DTD.
I googled and read documentation and older mails...
and I did set parser.shouldResolveExternalEntities = YES
I do get:
- (NSData *)parser:(AQXMLParser
I'm subclassing NSTextFieldCell to display an icon (a favicon of a webpage,
to be specific) in the left end of the text field. The text field's cell is
set to my subclass in Interface Builder. When I start my application, the
icon is displayed, but the text that should be in the text field is not.
On Sun, May 31, 2009 at 7:14 PM, Joseph Yu joseph...@qisda.com wrote:
How to use Toolbar to create UI like Mac MSN preference?
Brandon Walkin's BWToolkit has some classes that are designed just for
this task, because there is no built-in functionality.
http://brandonwalkin.com/bwtoolkit/
--Kyle
On May 30, 2009, at 11:18 PM, Ammar Ibrahim wrote:
On Sun, May 31, 2009 at 6:16 AM, Chris Hanson c...@me.com wrote:
The best way to ensure your daemon or agent is always running is to
have it
run via launchd.
Start by reading the launchd man page and the Daemons and Agents
tech
note;
You can use launchd to keep your app alive. That way you, don't
have to worry about adding code to your application to do it, you
just have to ensure the launchd property list is in the right place.
So if in your launchd module you have the key-value pair:
keyKeepAlive/key
Is there any way to detect if an application is in modal session?
I am trying to fix (work around) a problem in Cocoa + Carbon application,
where Cocoa UI thread is not blocked(for some Cocoa views) when a modal
dialog is invoked from Carbon app.
Thanks,
Vijay
59 matches
Mail list logo