I'm using NSAssert macro for Objective-C assertion, and it's the regular way to do this.
But it's not work in C functions. What do I should use for this?
I remember running into this problem when I started using OpenGL in OS X. Eventually I solved it, but I think that was just by using glut and c++ instead of Objective-C...
The lines of code I have in init for the ES1Renderer are as follows:
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
Then in the render method, I have this:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
I assume I'm missing something specific to either the iPhone or ES. What other steps are required to enable the depth test?
Thanks
Hello, I have recently started to develop applications for iPhone with MonoTouch and have to store user names and passwords on the phone. I want to use the keychain for this but can't find anything in the MonoTouch documentation about it. Is it possible to use it directly with MonoTouch or will I have to write some C++/C/Objective-C code that uses the keychain and export it to MonoTouch?
Are you an iPhone developer using tools other than Objective-C for your coding (i.e. Phonegap, Unity3d, Monotouch, Corona or Titanium, etc?)
Have you heard of or read section 3.3.1?
If you are concerned vote on the petition at [solicitation removed - see history]
Join the facebook group 'Article 3.3.1' and have your say: [solicitation removed - see history]
And most importantly contact apple through their web portal and ask for clarification
Hi guys.
I'm trying to do the next:
I have a word document, than contains the languages of a copyrights: English, Portuguese, French, ... initialy all hidden(the text)
And in the top of the document i have Checkboxs, 1 for each language, than the objective is when i choose of them the text of the language than i selected apppears (by an handler or something)
It's is possible to do that?
thanks
Hai
Thanks for everything. I have successfully implemented clean url in local. Very nice site.
Now my objective is to create a clean URL web site in php Microsoft-IIS/5.0, I know this in apache. But I don't know how this on Microsoft-IIS/5.0. Does any one give me a solution?
I love the "Organize Imports" command in Eclipse to implicitly add and remove classes imported into a source file (as in Java or ActionScript).
Is there a command in Xcode to update the #import directives at the top of.m Objective-C files based on the classes referenced within the file?
I tried to find source code for this kind of ajax game:
http://www.pitstreet.com/cgi-bin/pitstreet/pitgame.pl?lang=en&game=6&level=5
Some info:
The objective is to swap image with another with 3 same images or more in row (vertical or horizontal)
Maybe someone willing help me?
How can I port an application based on OS X to Linux? It is closed source and working in Windows either. It is not wrriten in ObjectiveC and doesn't use Cocoa.
Thank you.
I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to import pictures from the photos storage to the canvas within the uiwebview.Its built on Html,javascript and css.Would prefer to use objectiveC in xcode to acomplish this.Any ideas would be greatly appreciated.
There are alternatives to developing for iPhone besides the native Objective-C API. In particular, there are CSS/Javascript based solutions such as the iUi Framework.
Can you write successful iPhone apps with CSS/Javascript? Does Apple approve such apps? What are the advantages and disadvantages of using this approuch?
Thanks in advance.
hey every one
can some one help that , how can start XML and Html and what i have to start first and what steps should I take , and because I know Objectivec as iphone programmer but i what to know more about web base application so please some one help me with steps should I take and as beginner?
thanks
I'm writing an iPhone app. It's already been published, but I would like to add a feature where it's version number is displayed.
I'd rather not have to do this manually with each version I release..
Is there a way in objectiveC to find out what the version is of my app?
My code is as follows
TTTableLongTextItem *descItem = [[TTTableLongTextItem alloc] autorelease];
TTStyledText *styledDesc = [[TTStyledText alloc] autorelease];
styledDesc = [TTStyledText textWithURLs:@"howdy http://www.google.com"];
//this line causes the SIGABRT:
descItem.text = styledDesc;
//I also get a warning on this line that says "warning: passing argument 1 of 'setText:' from distinct Objective-C type"
What am I missing here? Any help is muchly appreciated - Three20 documentation is a little sparse!
hello,
I would create a view programitically , then Can i place the navigation controller upon a view by making the view as rootview? and then return the rootview to the window object in Objective-C for iPhone programming.
Is this possible?
Hi there, i run a C++ app from objective-c
I can successfully symbolicate my function names using Shark profiler but not with the Object Allocations instrument.à
In the detailed pane, i only see my C++ app name with the hexadecimal value for my C++ functions.
I tried to do a "File/Re-Symbolicate Document", selecting my app folder containing both my app and my Dsym file but nothing change.
Any clues?
My config:
xCode 3.2.2
iPhonoe SDK 3.2
Snowleopard (10.6.3)
Thx.
Using ObjectiveC, cocoa touch framework.
I have few image files in my iphone application. Some file names are in english and some are in japanese like "????????Icon .png"
I'm creating views programatically and not using IB.
My code is not able to read files with name in japanese language.
How can I get this work done.
"X" is reading the form value, but it is still passing and older "var thisMarket" value.
The objective is to take a zip code via HTML form:
<form id="market" name="market" onSubmit="return validateZIP(this.zip.value);" method="get" action="">
<input type="text" name="zip" id="zip" value="zipcode" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" style="float:left; width:100px; margin-top:5px;">
<input type="image" style="float:left; margin-top:5px; border: 0pt none ; width: 22px; height:17px;" src="images/nav/bottom/linkbar/btn_search_btn.gif" onClick="findLda();">
</form>
The script being passed thru is:
function findLda(x){
marketName = new Array();
marketURL = new Array();
zip = new Array();
zip_temp = new Array();
zipMatch = false;
var shareZip = "Shared Zips";
var thisMarket = "Market value";
xmlDoc=loadXML("/_includes/market.xml");
var Offer,node;
document.getElementById('market').innerHTML='';
for(var j=0; j<xmlDoc.getElementsByTagName('market').length; j++){
node = xmlDoc.getElementsByTagName('market')[j];
marketName.push(node.childNodes[3].textContent);
marketURL.push(node.childNodes[5].textContent);
for(var k=0; k<node.getElementsByTagName('zip').length; k++){
if(node.getElementsByTagName('zip')[k].textContent!=null){
zip_temp.push(node.getElementsByTagName('zip')[k].textContent);
}
}
zip.push(zip_temp);
zip_temp = new Array();
}
//loop the zip Array to find a match for the query Zip.
for(k=0; k<zip.length; k++){
for(m=0; m<zip[k].length; m++){
if(x == zip[k][m].toString()){
zipMatch=true;
thisMarket=marketName[k].toString();
}
}
}
alert(thisMarket);
}
The objective naturally is to take field input (A), pass it thru market.xml - initialize a loop and match a zip (B), alert the result (C).
Looking for any direction with what is existing or a completely new direction.
Thanks!
The title says it all. The objective is to have two simple ways to source some code, say func.R, containing a function. Calling R CMD BATCH func.R initializes the function and evaluates is. Within a session, issuing source("func.R") simply initializes the function.
Any idea?
Many of today's programming languages are based on C; like C++, C#, Java, Objective-C. So could I call a C method from C++ code? Or call C from Java or C#? Or is this goal out of reach and unreasonable? Please include a quick code sample for my and everyone else's understanding.
Hi All,
I have a file that is in structured storage format.
I was wondering if this format be accessed concurrently by threads.
Meaning have multiple threads read the different streams process it at once. The objective is to load the file faster.
When i refer to a file i refer one that represents CAD information.
Thank you.