Click here to Skip to main content
15,880,469 members
Everything / Programming Languages / Objective C

Objective C

Objective-C

Great Reads

by Paul M Watt
Guide to understanding how to create and use regions with the WIN32 SDK
by The Ænema
This article will teach you how to create an amazing, clean and smooth WPF/Winform UI for your native application without using any complex, unsafe, ActiveXish methods, etc.
by Jecho Jekov
Provides an easy way to use C calling convention callback functions in C# and VB
by Shmuel Zang
This article shows how we can implement a thread-safe events (similar to .NET events) mechanism using the standard C++ library.

Latest Articles

by Javad Taheri (drjackool)
Show or hide, reorder, save and restore list view column headers
by optiklab1
I demonstrate with an actual implementation that well-known algorithms BFS, DFS, Dijkstra, and A-Star are essentially variations of the same algorithm.
by ToughDev
How to convert between NSString and C strings in iOS project
by Ben McNamara
Container classes much faster than STL.

All Articles

Sort by Updated

Objective C 

20 Sep 2023 by Javad Taheri (drjackool)
Show or hide, reorder, save and restore list view column headers
15 Sep 2023 by optiklab1
I demonstrate with an actual implementation that well-known algorithms BFS, DFS, Dijkstra, and A-Star are essentially variations of the same algorithm.
13 Sep 2023 by Pravin TS
I am trying to integrate WireGuard for iOS and macOS in Xcode, the build process is success, but the integration shows error,although I had followed the procedures said in...
19 Aug 2023 by headshot9x
I have a class object and the Datagridview. I want to convert data in Datagridview to object, and can get/set values in object. Assume the quantity element in Datagridview equal to field of object, and variable name like the name first of...
19 Aug 2023 by OriginalGriff
Bear in mind that your processing is in a loop: so if your DGV has multiple persons, only the the last will be used - the earlier data will be discarded. You can't access _person in your button click handler: it is local to the GridviewToObject...
28 Jun 2023 by Quinten Bakker (QB)
I am trying to use priority queue with custom classen. My class is node(name, .., .., distance, ...) but when in try to push a node into the queue i get a error. node a = node("a",{}, 0, &a); node b = node("b",{}, INT_MAX, &a); node c =...
28 Jun 2023 by Rick York
Another option is to implement a comparison method in your class specifically for the purpose of sorting. It has to be static since sort does not pass this pointer to it. You could also make a sort method that could also be static but...
28 Jun 2023 by Quinten Bakker (QB)
So I have a class node(name, vector, distance, prev) and i want to sort it by distance. And i have used some methods like sort or with a operator but nothing seems to work. Is there any other way to to sort a vector of classes? What I have...
28 Jun 2023 by Richard MacCutchan
I have simplified your node class and the following code builds and runs using Microsoft C++ compiler: #include #include #include #include class node{ public: std::string name; int...
28 Jun 2023 by k5054
Similar to your previous question, a priority_queue needs to know how to determine which object has the higher priority. You could add a custom comparator to the definition of the priority_queue, or you could add an operator
28 Jun 2023 by Richard MacCutchan
std::vector test = {&a, &b, &c, &d}; // test contains node pointers node* shortestNode; std::priority_queue q; // priority_queue is declared to contain nodes rather than pointers to for(auto i : test)( q.push(i)...
28 Jun 2023 by k5054
I added a main function the above code vis: // .. QB's code up to here #include int main() { vector test; sort( test.begin(), test.end(), [](const node &a, const node &b){ return (a.distanceToStart
8 May 2023 by ToughDev
How to convert between NSString and C strings in iOS project
22 Apr 2023 by Ben McNamara
Container classes much faster than STL.
12 Feb 2023 by Udi Cohen
How I wrote a utility to sort files in FAT-32 storage devices and fixing products that are affected by improper sorting order, such as various music players.
5 Jan 2023 by vblover Programmer
Load Menu from Resource-Only DLL (created by VC++) and Set for Form As MainMenu by API Functions.
16 Nov 2022 by Svetoslav Chekanov
Fast implementation of 2:1 image shrink (full image or part of it)
10 Oct 2022 by Mehul Donga
Handle managed (C#) event in managed (C++/CLI)
11 Sep 2022 by Rahul Dev Tripathi
The fully working sample code explains everything necessary to create a Minifilter driver to block devices connected through an interface.
20 Aug 2022 by Patrice T
Using a large list of primes with Trial Division algorithm and how to handle the list
22 Jun 2022 by Stephane Capo
C++ optimization for map using string key among others
16 Jun 2022 by Member 4206974
A work for exploring the Asynchronous WEB Server, the SPIFFS File system and the exploitation of the dual core
2 Apr 2022 by Michael Sydney Balloni
If you were on the fence about adding mscript to your arsenal of system tools, have another look.
23 Feb 2022 by Michael Sydney Balloni
Recycle objects that are expensive to create and improve the performance of your application
22 Jan 2022 by Member 15509240
Hi, I saw your query, and in my husband iPhone 13 pro phone I always keep seeing last mms(in iMessage)sent to “buddy name” but there is no contact exist with that name. Can u help?
8 Jan 2022 by Michael Sydney Balloni
An exciting proof-of-concept that sews httplite with security components
16 Dec 2021 by AlexeyAB
Atomic operations and C++11 memory barriers and assembler instructions generated on x86_64 CPUs
30 Nov 2021 by Nandkishor Biradar
A minimalist UML State machine framework for finite state machine and hierarchical state machine in C
21 Nov 2021 by REALTBU
Easy to use class which supports displaying icons on button controls
17 Oct 2021 by Petrov Vladimir
Starting Threads in MFC and Win32 and some handling samples
10 Sep 2021 by Priyanka Somani
Given as input a list of integers nums and an integer k, return the maximum value of each sub-list of length k Example: nums = [4, 8, 2, 4, 10, 12] k = 2 Output = [8, 8, 4, 10, 12] Your task is to create a class named SlidingWindow and implement...
8 Sep 2021 by Michael Sydney Balloni
Performance of data structures in C++ vs. C#
31 Aug 2021 by Member 14307648
Hello Using Objective C, I'm creating an app that initially loads Safari. The landing page is something like www.mypage.com. When a user click on a button, in Safari, it redirects them to a new page something called, www.anotherpage.com. Is...
12 Jul 2021 by David Wincelberg
Strings that differ by typos can be matched.
1 Jul 2021 by Richard MacCutchan
void getarea(double *X, double *Y,int Node_0, int Node_1, int Node_2) { double element_area= abs(0.5*(((x[node_0] - x[node_2])*(y[node_1] - y[node_2])) - ((y[node_0] - y[node_2])*(x[node_1] - (x[node_2]))))); } You calculate some value and...
1 Jul 2021 by KarstenK
The most common reason is that your code doesnt work as want, some people call it bug but often are it only some missing code pieces. To examine your code most IDE have a tool named "Debugger". Read this Debugger tutorial to kickstart your...
1 Jul 2021 by OriginalGriff
"It doesn't work" is probably the most useless problem report we get - and we get it a lot. It tells us nothing about what is happening, or when it happens. So tell us what it is doing that you didn't expect, or not doing that you did. Tell us...
22 Jun 2021 by Miroslav Fidler
Creating a simple utility for converting text to SVG path in U++
4 Jun 2021 by Member 4206974
A C++ script with functions for managing the power reduction and wake up techniques on ESP32 board
1 May 2021 by Mircea Neacsu
A data structure for finding best rational approximations
15 Apr 2021 by Arvind Patel Apr2021
Write a function f where f(f(x)) = -x (assume x to be an integer), any programming language would do. What I have tried: How can I write the following fuction?
15 Apr 2021 by OriginalGriff
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us...
15 Apr 2021 by CPallini
You know, you may accomplish this task using a function returning the complex number obtained multiplying x by sqrt(-1). Using other approaches you have to return, together with the integer result, and additional info. There are several ways to...
7 Apr 2021 by Member 4206974
Board based automation and environment control
31 Mar 2021 by Fedor Naumenko
Find type of distribution and parameters from set of distributed physical values
25 Feb 2021 by Stephane Capo
Kigs framework C++ Windows project to retrieve and display what other channels are subscribed by subscribers of a given YouTube channel.
31 Jan 2021 by Steffen Ploetz
Creation of a basic icon editor with as little code as possible, that is running on ReactOS and Windows, to check out the stability of application development capabilities on ReactOS
12 Jan 2021 by Alexander Schichmanter
Concept, Motivation and Implementation of Dynamic Logging - a valuable aid to the C++ programmer
11 Jan 2021 by Md Sadham
DESIGN: In my app, am using iMessage post option. Its works perfectly with one silly problem. Here is my code:if(!TARGET_IPHONE_SIMULATOR){ if ([MFMessageComposeViewController canSendText]){ MFMessageComposeViewController *MFMsgPicker = [[MFMessageComposeViewController...
29 Dec 2020 by IgorRadionyuk
An iterator over parametric function, which is a well known mathematical abstraction: Parametric Function. It maps interval of real numbers[start, stop] to some values in the range of function.
26 Dec 2020 by IgorRadionyuk
Proposal for implementation diapasons of values or it ranges
18 Oct 2020 by Roozbeh Abolpour
The data-driven MPC is implemented in this project that can be easily exploited
16 Sep 2020 by Member 4206974
A function that works on event of Arduino and ESP32 boards
9 Sep 2020 by wooriele
- (float) getVerticalOffset:(CGPoint)point1 point2:(CGPoint)point2 point3:(CGPoint)point3 point4:(CGPoint)point4 magnetLen:(float)length{ float result = length; if (point1.x > point2.x){ float t = point1.x; point1.x = point2.x; point2.x = t; } point1.x -= length;...
10 Jun 2020 by fernando amatulli
Polynomial interpolation algorithm from 1 to 9 degree that allow forcing constant term to 0
26 May 2020 by stefan stammberger
A novel allocator implementation for managing huge sets of data in STL's std:: containers for Windows operating systems
14 Apr 2020 by Member 4201813
Jump forward/backward procedures for XorShift RNG explained step by step
18 Feb 2020 by Mircea Neacsu
Case folding for UTF-8 code
6 Jan 2020 by The Ænema
This article will teach you how to create an amazing, clean and smooth WPF/Winform UI for your native application without using any complex, unsafe, ActiveXish methods, etc.
2 Jan 2020 by Alexandre Bencz
DotNetPELib is a library which abstracts managed information such as namespaces, classes, fields, methods, and instructions. The information can then be used to generate assembly language source files, or PE executables or DLLs.
20 Dec 2019 by steveb
Dynamic string for the C language
19 Dec 2019 by Edwig Huisman
CString only projects can convert to STL std::string
19 Dec 2019 by Edwig Huisman
A binary-coded-decimal class and the ODBC Interface
17 Dec 2019 by Alexandre Bencz
With this new OrangeC/C++ compiler back-end, you can compile your C code to .NET
30 Oct 2019 by Sanmayce
Brutally optimized hash function for general table lookups
20 Oct 2019 by Lance A. Endres
The algorithm presented by Radhakrishnan, et al., originally used to segment well logs for the oil industry, has been ported to C and C#.
9 Oct 2019 by Zebedee Mason
Visual C++ tests are created from Gherkin DSL feature files using a Python 2.7 script
22 Sep 2019 by Rodrigo Cesar de Freitas Dias
Introducing WinLamb, a modern C++11 object-oriented library to write native Windows programs
12 Aug 2019 by LeisureBamboo
The decode and encode of multiPage rotate tif.zip
9 Jun 2019 by cassert24
Template code for basic reflection functionalities (e.g., dynamic casting, instance type comparison, class name) with C#-like singular inheritance rule (a.k.a, one-base-multiple-interface rule)
6 Jun 2019 by cassert24
For those who are searching for a quick template code for the C++ replacement of C# properties, this is it.
31 May 2019 by Rick Lunglhofer
Details the Implementation and use of a C Language Interpreter with a browser Interface running on an ESP32
28 Apr 2019 by Phil Hopley
In this article, we will add AI to an existing ROS (Robot Operating System) House Bot.
24 Apr 2019 by Gonzales Cenelia
Tutorial on making an artificial intelligence chatbot
24 Apr 2019 by QxOrm
QxOrm C++ library: Persistence (based on QtSql Qt library) - Serialization (based on boost::serialization library) - Reflection (introspection)
20 Apr 2019 by BrainlessLabs.com, sibani.p
Creating a simple ORM for C++ on-top of SQL database
11 Apr 2019 by Jose A Pascoa
Although most Windows programmers have already used the RichEdit Control, many of them are not aware of all its capabilities. One such capability is image embedding.
20 Feb 2019 by David Lafreniere
A compact C++ finite state machine (FSM) implementation that's easy to use on embedded and PC-based systems
26 Jan 2019 by David Lafreniere
A framework combining state machines and multicast asynchronous callbacks
25 Jan 2019 by David Lafreniere
Simplify passing data between threads using this multithreaded, portable C++ asynchronous callback framework
22 Jan 2019 by Andrea Ricchetti
Two ways to make a IEEE 754 conversion (32 bit) pack and unpack
17 Jan 2019 by Phil Hopley
Third part in a series on a ROS (Robot Operating System) House Bot
16 Jan 2019 by Phil Hopley
Second part in a series on a ROS (Robot Operating System) House Bot
9 Jan 2019 by steveb
Describes all aspects of MFC serialization mechanism
3 Jan 2019 by Sauro Abbondanzieri
UWP, COM, C++/WinRT, OOP in plain C. What else?
31 Dec 2018 by Craig Muller
This article introduces a convenient class for hooking into idle processing.
29 Dec 2018 by Sauro Abbondanzieri
Implementing a Canvas concept with OOP, in a fresh, polished and effective, pure and plain ANSI C
25 Dec 2018 by Shao Voon Wong
15 Dec 2018 by Dmitriy Gakh
An introduction to Genetic Algorithms with brief reference to biology and example of finding one solution for complex mathematical equation
13 Dec 2018 by Tareq_Gamal
Simple way to create a Multitasking code for your Arduino project without using any external library.
13 Dec 2018 by Michael Haephrati
A simple way for sending WhatsApp documents and images to an individual or to a group in C++
8 Dec 2018 by CalicoSkies
Mixing audio from multiple WAV files to a single WAV file. Includes a C++ class for reading and writing WAV audio files, derived from an AudioFile class for future support of other audio file formats.